Delegate AsyncDataConnectionDelegate
Delegate for sending or receivung data over a data connection.
Namespace: FubarDev.FtpServer.ServerCommands
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public delegate Task<IFtpResponse? > AsyncDataConnectionDelegate(IFtpDataConnection dataConnection, CancellationToken cancellationToken);
Parameters
Type | Name | Description |
---|---|---|
IFtpDataConnection | dataConnection | The data connection used to send or receive the data over. |
CancellationToken | cancellationToken | The cancellation token to signal command abortion. |
Returns
Type | Description |
---|---|
Task<Nullable<IFtpResponse>> | The task with an FTP response if it should be different than the default one. |