Show / Hide Table of Contents

    Class FtpCommandHandlerExtension

    The base class for FTP command extensions.

    Inheritance
    Object
    FtpCommandHandlerExtension
    OptsMlstCommandExtension
    OptsUtf8CommandExtension
    SiteBlstCommandExtension
    SiteUtimeCommandExtension
    Implements
    IFtpCommandHandlerExtension
    IFtpCommandBase
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer.CommandExtensions
    Assembly: FubarDev.FtpServer.Commands.dll
    Syntax
    public abstract class FtpCommandHandlerExtension : IFtpCommandHandlerExtension, IFtpCommandBase

    Constructors

    | Improve this Doc View Source

    FtpCommandHandlerExtension()

    Initializes a new instance of the FtpCommandHandlerExtension class.

    Declaration
    protected FtpCommandHandlerExtension()
    | Improve this Doc View Source

    FtpCommandHandlerExtension(String, String, String[])

    Initializes a new instance of the FtpCommandHandlerExtension class.

    Declaration
    [Obsolete("Use the FtpCommandHandlerExtensionAttribute together with an additional IFtpCommandHandlerExtensionScanner.")]
    protected FtpCommandHandlerExtension(string extensionFor, string name, params string[] alternativeNames)
    Parameters
    Type Name Description
    String extensionFor

    The name of the command this extension is for.

    String name

    The command name.

    String[] alternativeNames

    Alternative names.

    Properties

    | Improve this Doc View Source

    CommandContext

    Gets or sets the FTP command context.

    Declaration
    public FtpCommandHandlerContext CommandContext { get; set; }
    Property Value
    Type Description
    FtpCommandHandlerContext
    | Improve this Doc View Source

    Connection

    Gets the connection this command was created for.

    Declaration
    protected IFtpConnection Connection { get; }
    Property Value
    Type Description
    IFtpConnection
    | Improve this Doc View Source

    Data

    Gets the connection data.

    Declaration
    [Obsolete("Query the information using the Features property instead.")]
    protected FtpConnectionData Data { get; }
    Property Value
    Type Description
    FtpConnectionData
    | Improve this Doc View Source

    ExtensionFor

    Declaration
    public string ExtensionFor { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    FtpContext

    Gets the connection this command was created for.

    Declaration
    protected FtpContext FtpContext { get; }
    Property Value
    Type Description
    FtpContext
    | Improve this Doc View Source

    IsLoginRequired

    Declaration
    [Obsolete("Use the FtpCommandHandlerExtension attribute instead.")]
    public virtual bool? IsLoginRequired { get; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    Names

    Declaration
    public IReadOnlyCollection<string> Names { get; }
    Property Value
    Type Description
    IReadOnlyCollection<String>

    Methods

    | Improve this Doc View Source

    InitializeConnectionData()

    Declaration
    public abstract void InitializeConnectionData()
    | Improve this Doc View Source

    Process(FtpCommand, CancellationToken)

    Declaration
    public abstract Task<IFtpResponse? > Process(FtpCommand command, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    FtpCommand command
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Nullable<IFtpResponse>>
    | Improve this Doc View Source

    T(String)

    Translates a message using the current catalog of the active connection.

    Declaration
    protected string T(string message)
    Parameters
    Type Name Description
    String message

    The message to translate.

    Returns
    Type Description
    String

    The translated message.

    | Improve this Doc View Source

    T(String, Object[])

    Translates a message using the current catalog of the active connection.

    Declaration
    [StringFormatMethod("message")]
    protected string T(string message, params object[] args)
    Parameters
    Type Name Description
    String message

    The message to translate.

    Object[] args

    The format arguments.

    Returns
    Type Description
    String

    The translated message.

    Implements

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