Show / Hide Table of Contents

    Class SingleFtpHostSelector

    A simple implementation of the IFtpHostSelector interface.

    Inheritance
    Object
    SingleFtpHostSelector
    Implements
    IFtpHostSelector
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.dll
    Syntax
    public class SingleFtpHostSelector : IFtpHostSelector

    Constructors

    | Improve this Doc View Source

    SingleFtpHostSelector(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 Source

    SelectedHost

    Gets the selected FTP host.

    Declaration
    public IFtpHost SelectedHost { get; }
    Property Value
    Type Description
    IFtpHost

    Methods

    | Improve this Doc View Source

    SelectHostAsync(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 HOST command.

    Implements

    IFtpHostSelector
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.