Show / Hide Table of Contents

    Class SimplePasvAddressResolver

    The default implementation of the SimplePasvAddressResolver.

    Inheritance
    Object
    SimplePasvAddressResolver
    Implements
    IPasvAddressResolver
    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 SimplePasvAddressResolver : IPasvAddressResolver
    Remarks

    The address family number gets ignored by this resolver. We always use the same address family as the local end point.

    Constructors

    | Improve this Doc View Source

    SimplePasvAddressResolver(IOptions<SimplePasvOptions>)

    Initializes a new instance of the SimplePasvAddressResolver class.

    Declaration
    public SimplePasvAddressResolver(IOptions<SimplePasvOptions> options)
    Parameters
    Type Name Description
    IOptions<SimplePasvOptions> options

    The options.

    Methods

    | Improve this Doc View Source

    GetOptionsAsync(IFtpConnection, Nullable<AddressFamily>, CancellationToken)

    Get the PASV/EPSV options.

    Declaration
    public Task<PasvListenerOptions> GetOptionsAsync(IFtpConnection connection, AddressFamily? addressFamily, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IFtpConnection connection

    The FTP connection.

    Nullable<AddressFamily> addressFamily

    The address family for the address to be selected.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<PasvListenerOptions>

    The task returning the options.

    Implements

    IPasvAddressResolver
    • 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.