Show / Hide Table of Contents

    Class PassiveDataConnectionFeatureFactory

    Creates a passive FTP data connection.

    Inheritance
    Object
    PassiveDataConnectionFeatureFactory
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer.DataConnection
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public class PassiveDataConnectionFeatureFactory

    Constructors

    | Improve this Doc View Source

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

    CreateFeatureAsync(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.

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