Show / Hide Table of Contents

    Interface IFtpResponse

    Base interface to get the response for an FTP command.

    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public interface IFtpResponse

    Properties

    | Improve this Doc View Source

    AfterWriteAction

    Gets the async action to execute after sending the response to the client.

    Declaration
    [Obsolete("Use a custom server command.")]
    FtpResponseAfterWriteAsyncDelegate? AfterWriteAction { get; }
    Property Value
    Type Description
    Nullable<FtpResponseAfterWriteAsyncDelegate>
    | Improve this Doc View Source

    Code

    Gets the response code.

    Declaration
    int Code { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    GetNextLineAsync(Nullable<Object>, CancellationToken)

    Tries to get the the next line.

    Declaration
    Task<FtpResponseLine> GetNextLineAsync(object? token, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Nullable<Object> token

    Token that saves the current position. Must be null at the beginning.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<FtpResponseLine>

    true when a new line is available to send.

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