Class SecureDataConnectionWrapper
Wrapper that wraps a data connection into a secure data connection if needed.
Inherited Members
Namespace: FubarDev.FtpServer.DataConnection
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class SecureDataConnectionWrapper
Constructors
| Improve this Doc View SourceSecureDataConnectionWrapper(IFtpConnectionAccessor, ISslStreamWrapperFactory)
Initializes a new instance of the SecureDataConnectionWrapper class.
Declaration
public SecureDataConnectionWrapper(IFtpConnectionAccessor connectionAccessor, ISslStreamWrapperFactory sslStreamWrapperFactory)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnectionAccessor | connectionAccessor | Accessor for the FTP connection. |
ISslStreamWrapperFactory | sslStreamWrapperFactory | The SSL stream wrapper factory. |
Methods
| Improve this Doc View SourceWrapAsync(IFtpDataConnection)
Wraps the data connection into a secure data connection if needed.
Declaration
public Task<IFtpDataConnection> WrapAsync(IFtpDataConnection dataConnection)
Parameters
Type | Name | Description |
---|---|---|
IFtpDataConnection | dataConnection | The data connection that should - if needed - be wrapped into a secure data connection. |
Returns
Type | Description |
---|---|
Task<IFtpDataConnection> | The task returning the same or a secure data connection. |