Show / Hide Table of Contents

    Class FtpResponseTextBlock

    An implementation of IFtpResponse that is usable for the FTP servers banner message.

    Inheritance
    Object
    FtpResponseTextBlock
    Implements
    IFtpResponse
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public class FtpResponseTextBlock : IFtpResponse

    Constructors

    | Improve this Doc View Source

    FtpResponseTextBlock(Int32, IEnumerable<String>)

    Initializes a new instance of the FtpResponseTextBlock class.

    Declaration
    public FtpResponseTextBlock(int code, IEnumerable<string> lines)
    Parameters
    Type Name Description
    Int32 code

    The FTP response code.

    IEnumerable<String> lines

    The text to be sent to the client.

    Properties

    | Improve this Doc View Source

    AfterWriteAction

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

    Code

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

    Methods

    | Improve this Doc View Source

    GetNextLineAsync(Nullable<Object>, CancellationToken)

    Declaration
    public Task<FtpResponseLine> GetNextLineAsync(object? token, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Nullable<Object> token
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<FtpResponseLine>
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

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