Class BackgroundCommandHandler
Asynchronous processing of an FTP command.
Inherited Members
Namespace: FubarDev.FtpServer.BackgroundTransfer
Assembly: FubarDev.FtpServer.dll
Syntax
[Obsolete("Not needed any more. Command execution was streamlined.")]
public sealed class BackgroundCommandHandler : IBackgroundCommandHandler, IDisposable
Remarks
This allows the implementation of the ABOR
command.
Methods
| Improve this Doc View SourceCancel()
Cancels the processing of the current command.
Declaration
public bool Cancel()
Returns
Type | Description |
---|---|
Boolean | when there was a command execution that could be cancelled.
|
Dispose()
Declaration
public void Dispose()
Execute(IFtpCommandBase, FtpCommand)
Executes the FTP command
with the given FTP command handler
.
Declaration
public Task<IFtpResponse? > Execute(IFtpCommandBase handler, FtpCommand command)
Parameters
Type | Name | Description |
---|---|---|
IFtpCommandBase | handler | The command handler that processes the given |
FtpCommand | command | The command to process by the |
Returns
Type | Description |
---|---|
Task<Nullable<IFtpResponse>> | when the command could not be processed.
|