Class FtpResponseTextBlock
  
  An implementation of IFtpResponse that is usable for the FTP servers banner message.
 
  
  
    Inheritance
    
    FtpResponseTextBlock
   
  
  
  
  Assembly: FubarDev.FtpServer.Abstractions.dll
  Syntax
  
    public class FtpResponseTextBlock : IFtpResponse
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  FtpResponseTextBlock(Int32, IEnumerable<String>)
  
  
  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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Code
  
  
  Declaration
  
  Property Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetNextLineAsync(Nullable<Object>, CancellationToken)
  
  
  Declaration
  
    public Task<FtpResponseLine> GetNextLineAsync(object? token, CancellationToken cancellationToken)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
  
  
  Declaration
  
    public override string ToString()
   
  Returns
  
  Overrides
  
  Implements