Show / Hide Table of Contents

    Interface IBackgroundCommandHandler

    Interface for asynchronous processing of an FTP command.

    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    [Obsolete("Not needed any more. Command execution was streamlined.")]
    public interface IBackgroundCommandHandler
    Remarks

    This allows the implementation of the ABOR command.

    Methods

    | Improve this Doc View Source

    Cancel()

    Cancels the processing of the current command.

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

    Execute(IFtpCommandBase, FtpCommand)

    Executes the FTP command with the given FTP command handler.

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