Show / Hide Table of Contents

    Class ActiveDataConnectionFeatureFactory

    Creates an active FTP data connection.

    Inheritance
    Object
    ActiveDataConnectionFeatureFactory
    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 ActiveDataConnectionFeatureFactory

    Constructors

    | Improve this Doc View Source

    ActiveDataConnectionFeatureFactory(IFtpConnectionAccessor, IEnumerable<IFtpDataConnectionValidator>)

    Initializes a new instance of the ActiveDataConnectionFeatureFactory class.

    Declaration
    public ActiveDataConnectionFeatureFactory(IFtpConnectionAccessor connectionAccessor, IEnumerable<IFtpDataConnectionValidator> validators)
    Parameters
    Type Name Description
    IFtpConnectionAccessor connectionAccessor

    The FTP connection accessor.

    IEnumerable<IFtpDataConnectionValidator> validators

    An enumeration of FTP connection validators.

    Methods

    | Improve this Doc View Source

    CreateFeatureAsync(Nullable<FtpCommand>, Address, Nullable<Int32>)

    Creates a IFtpDataConnectionFeature implementation for an active FTP data connection.

    Declaration
    [Obsolete("Use the overload with IPEndPoint as address instead.")]
    public Task<IFtpDataConnectionFeature> CreateFeatureAsync(FtpCommand? ftpCommand, Address portAddress, int? dataPort)
    Parameters
    Type Name Description
    Nullable<FtpCommand> ftpCommand

    The FTP command that initiated the creation of the feature.

    Address portAddress

    The address the client wants the FTP server to connect to.

    Nullable<Int32> dataPort

    The source port the server should use to connect to the client.

    Returns
    Type Description
    Task<IFtpDataConnectionFeature>

    The task returning the new FTP data connection feature.

    | Improve this Doc View Source

    CreateFeatureAsync(Nullable<FtpCommand>, IPEndPoint, Nullable<Int32>)

    Creates a IFtpDataConnectionFeature implementation for an active FTP data connection.

    Declaration
    public Task<IFtpDataConnectionFeature> CreateFeatureAsync(FtpCommand? ftpCommand, IPEndPoint portEndPoint, int? dataPort)
    Parameters
    Type Name Description
    Nullable<FtpCommand> ftpCommand

    The FTP command that initiated the creation of the feature.

    IPEndPoint portEndPoint

    The address the client wants the FTP server to connect to.

    Nullable<Int32> dataPort

    The source port the server should use to connect to the client.

    Returns
    Type Description
    Task<IFtpDataConnectionFeature>

    The task returning the new FTP data connection feature.

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