Class FtpResponse
FTP response.
Implements
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class FtpResponse : IFtpResponse
Constructors
| Improve this Doc View SourceFtpResponse(SecurityActionResult, Nullable<String>)
Initializes a new instance of the FtpResponse class.
Declaration
public FtpResponse(SecurityActionResult code, string? message)
Parameters
Type | Name | Description |
---|---|---|
SecurityActionResult | code | The response code. |
Nullable<String> | message | The response message. |
FtpResponse(Int32, Nullable<String>)
Initializes a new instance of the FtpResponse class.
Declaration
public FtpResponse(int code, string? message)
Parameters
Type | Name | Description |
---|---|---|
Int32 | code | The response code. |
Nullable<String> | message | The response message. |
Properties
| Improve this Doc View SourceAfterWriteAction
Gets or sets the async action to execute after sending the response to the client.
Declaration
[Obsolete("Use a custom server command.")]
public FtpResponseAfterWriteAsyncDelegate? AfterWriteAction { get; set; }
Property Value
Type | Description |
---|---|
Nullable<FtpResponseAfterWriteAsyncDelegate> |
Code
Declaration
public int Code { get; }
Property Value
Type | Description |
---|---|
Int32 |
Message
Gets the response message.
Declaration
public string? Message { get; }
Property Value
Type | Description |
---|---|
Nullable<String> |
Methods
| Improve this Doc View SourceGetNextLineAsync(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> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |