Class PassiveDataConnectionFeatureFactory
Creates a passive FTP data connection.
Inherited Members
Namespace: FubarDev.FtpServer.DataConnection
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class PassiveDataConnectionFeatureFactory
Constructors
| Improve this Doc View SourcePassiveDataConnectionFeatureFactory(IPasvListenerFactory, IFtpConnectionAccessor, IEnumerable<IFtpDataConnectionValidator>, Nullable<ILogger<PassiveDataConnectionFeatureFactory>>)
Initializes a new instance of the PassiveDataConnectionFeatureFactory class.
Declaration
public PassiveDataConnectionFeatureFactory(IPasvListenerFactory pasvListenerFactory, IFtpConnectionAccessor connectionAccessor, IEnumerable<IFtpDataConnectionValidator> validators, ILogger<PassiveDataConnectionFeatureFactory>? logger = default(ILogger<PassiveDataConnectionFeatureFactory>? ))
Parameters
Type | Name | Description |
---|---|---|
IPasvListenerFactory | pasvListenerFactory | The PASV listener factory. |
IFtpConnectionAccessor | connectionAccessor | The FTP connection accessor. |
IEnumerable<IFtpDataConnectionValidator> | validators | An enumeration of FTP connection validators. |
Nullable<ILogger<PassiveDataConnectionFeatureFactory>> | logger | The logger. |
Methods
| Improve this Doc View SourceCreateFeatureAsync(FtpCommand, Nullable<AddressFamily>, CancellationToken)
Creates a new IFtpDataConnectionFeature instance.
Declaration
public Task<IFtpDataConnectionFeature> CreateFeatureAsync(FtpCommand ftpCommand, AddressFamily? addressFamily, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FtpCommand | ftpCommand | The FTP command that initiated the creation of the feature. |
Nullable<AddressFamily> | addressFamily | The address family for the address to be selected. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<IFtpDataConnectionFeature> | The task returning the IFtpDataConnectionFeature instance. |