Interface IBackgroundCommandHandler
Interface for asynchronous processing of an FTP command.
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
[Obsolete("Not needed any more. Command execution was streamlined.")]
public interface IBackgroundCommandHandler
Remarks
This allows the implementation of the ABOR
command.
Methods
| Improve this Doc View SourceCancel()
Cancels the processing of the current command.
Declaration
bool Cancel()
Returns
Type | Description |
---|---|
Boolean | when there was a command execution that could be cancelled.
|
Execute(IFtpCommandBase, FtpCommand)
Executes the FTP command
with the given FTP command handler
.
Declaration
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.
|