Show / Hide Table of Contents

    Interface IFtpStateMachine<TStatus>

    Interface for a state machine for the FTP server.

    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public interface IFtpStateMachine<out TStatus>
    
        where TStatus : Enum
    Type Parameters
    Name Description
    TStatus

    The type of the status of the state machine.

    Properties

    | Improve this Doc View Source

    Status

    Gets the current status.

    Declaration
    TStatus Status { get; }
    Property Value
    Type Description
    TStatus

    Methods

    | Improve this Doc View Source

    ExecuteAsync(FtpCommand, CancellationToken)

    Handles an FTP command.

    Declaration
    Task<IFtpResponse? > ExecuteAsync(FtpCommand ftpCommand, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    FtpCommand ftpCommand

    The FTP command to handle.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<Nullable<IFtpResponse>>

    The task returning the response.

    | Improve this Doc View Source

    Reset()

    Resets the state machine.

    Declaration
    void Reset()
    • 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.