Show / Hide Table of Contents

    Class BackgroundCommandHandler

    Asynchronous processing of an FTP command.

    Inheritance
    Object
    BackgroundCommandHandler
    Implements
    IBackgroundCommandHandler
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer.BackgroundTransfer
    Assembly: FubarDev.FtpServer.dll
    Syntax
    [Obsolete("Not needed any more. Command execution was streamlined.")]
    public sealed class BackgroundCommandHandler : IBackgroundCommandHandler, IDisposable
    Remarks

    This allows the implementation of the ABOR command.

    Methods

    | Improve this Doc View Source

    Cancel()

    Cancels the processing of the current command.

    Declaration
    public bool Cancel()
    Returns
    Type Description
    Boolean
    true
    when there was a command execution that could be cancelled.
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Execute(IFtpCommandBase, FtpCommand)

    Executes the FTP command with the given FTP command handler.

    Declaration
    public Task<IFtpResponse? > Execute(IFtpCommandBase handler, FtpCommand command)
    Parameters
    Type Name Description
    IFtpCommandBase handler

    The command handler that processes the given command.

    FtpCommand command

    The command to process by the handler.

    Returns
    Type Description
    Task<Nullable<IFtpResponse>>
    null
    when the command could not be processed.

    Implements

    IBackgroundCommandHandler
    System.IDisposable
    • 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.