Class SingleFtpHostSelector
A simple implementation of the IFtpHostSelector interface.
Implements
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.dll
Syntax
public class SingleFtpHostSelector : IFtpHostSelector
Constructors
| Improve this Doc View SourceSingleFtpHostSelector(IFtpConnection, IEnumerable<IAuthenticationMechanism>, IEnumerable<IAuthorizationMechanism>, IOptions<AuthTlsOptions>)
Initializes a new instance of the SingleFtpHostSelector class.
Declaration
public SingleFtpHostSelector(IFtpConnection connection, IEnumerable<IAuthenticationMechanism> authenticationMechanisms, IEnumerable<IAuthorizationMechanism> authorizationMechanisms, IOptions<AuthTlsOptions> authTlsOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| IFtpConnection | connection | The FTP connection. |
| IEnumerable<IAuthenticationMechanism> | authenticationMechanisms | The registered authentication mechanisms. |
| IEnumerable<IAuthorizationMechanism> | authorizationMechanisms | The registered authorization mechanisms. |
| IOptions<AuthTlsOptions> | authTlsOptions | The options for the AUTH TLS command. |
Properties
| Improve this Doc View SourceSelectedHost
Gets the selected FTP host.
Declaration
public IFtpHost SelectedHost { get; }
Property Value
| Type | Description |
|---|---|
| IFtpHost |
Methods
| Improve this Doc View SourceSelectHostAsync(HostInfo, CancellationToken)
Selects the new FTP host.
Declaration
public Task<IFtpResponse> SelectHostAsync(HostInfo hostInfo, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| HostInfo | hostInfo | The host to select. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IFtpResponse> | The FTP response for the |