Class ActiveDataConnectionFeatureFactory
Creates an active FTP data connection.
Inherited Members
Namespace: FubarDev.FtpServer.DataConnection
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class ActiveDataConnectionFeatureFactory
Constructors
| Improve this Doc View SourceActiveDataConnectionFeatureFactory(IFtpConnectionAccessor, IEnumerable<IFtpDataConnectionValidator>)
Initializes a new instance of the ActiveDataConnectionFeatureFactory class.
Declaration
public ActiveDataConnectionFeatureFactory(IFtpConnectionAccessor connectionAccessor, IEnumerable<IFtpDataConnectionValidator> validators)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnectionAccessor | connectionAccessor | The FTP connection accessor. |
IEnumerable<IFtpDataConnectionValidator> | validators | An enumeration of FTP connection validators. |
Methods
| Improve this Doc View SourceCreateFeatureAsync(Nullable<FtpCommand>, Address, Nullable<Int32>)
Creates a IFtpDataConnectionFeature implementation for an active FTP data connection.
Declaration
[Obsolete("Use the overload with IPEndPoint as address instead.")]
public Task<IFtpDataConnectionFeature> CreateFeatureAsync(FtpCommand? ftpCommand, Address portAddress, int? dataPort)
Parameters
Type | Name | Description |
---|---|---|
Nullable<FtpCommand> | ftpCommand | The FTP command that initiated the creation of the feature. |
Address | portAddress | The address the client wants the FTP server to connect to. |
Nullable<Int32> | dataPort | The source port the server should use to connect to the client. |
Returns
Type | Description |
---|---|
Task<IFtpDataConnectionFeature> | The task returning the new FTP data connection feature. |
CreateFeatureAsync(Nullable<FtpCommand>, IPEndPoint, Nullable<Int32>)
Creates a IFtpDataConnectionFeature implementation for an active FTP data connection.
Declaration
public Task<IFtpDataConnectionFeature> CreateFeatureAsync(FtpCommand? ftpCommand, IPEndPoint portEndPoint, int? dataPort)
Parameters
Type | Name | Description |
---|---|---|
Nullable<FtpCommand> | ftpCommand | The FTP command that initiated the creation of the feature. |
IPEndPoint | portEndPoint | The address the client wants the FTP server to connect to. |
Nullable<Int32> | dataPort | The source port the server should use to connect to the client. |
Returns
Type | Description |
---|---|
Task<IFtpDataConnectionFeature> | The task returning the new FTP data connection feature. |