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 SourceAfterWriteAction
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> |
Code
Gets the response code.
Declaration
int Code { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceGetNextLineAsync(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. |