Class FtpResponseList
An FTP response for lists.
Implements
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class FtpResponseList : FtpResponseList<IEnumerator<string>>, IFtpResponse
  Constructors
| Improve this Doc View SourceFtpResponseList(Int32, String, String, IEnumerable<String>)
Initializes a new instance of the FtpResponseList class.
Declaration
public FtpResponseList(int code, string startMessage, string endMessage, IEnumerable<string> lines)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | code | The status code.  | 
      
| String | startMessage | The message in the start line.  | 
      
| String | endMessage | The message in the end line.  | 
      
| IEnumerable<String> | lines | The lines in between (without whitespace at the beginning).  | 
      
Methods
| Improve this Doc View SourceCreateInitialStatusAsync(CancellationToken)
Declaration
protected override Task<IEnumerator<string>> CreateInitialStatusAsync(CancellationToken cancellationToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<IEnumerator<String>> | 
Overrides
FubarDev.FtpServer.FtpResponseList<System.Collections.Generic.IEnumerator<System.String>>.CreateInitialStatusAsync(System.Threading.CancellationToken)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetNextLineAsync(IEnumerator<String>, CancellationToken)
Declaration
protected override Task<string? > GetNextLineAsync(IEnumerator<string> status, CancellationToken cancellationToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerator<String> | status | |
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<Nullable<String>> | 
Overrides
FubarDev.FtpServer.FtpResponseList<System.Collections.Generic.IEnumerator<System.String>>.GetNextLineAsync(System.Collections.Generic.IEnumerator<System.String>, System.Threading.CancellationToken)