Interface IServerCommandHandler<TCommand>
Interface to be implemented by a server command handler.
Namespace: FubarDev.FtpServer.ServerCommands
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IServerCommandHandler<TCommand>
where TCommand : class, IServerCommand
Type Parameters
| Name | Description |
|---|---|
| TCommand | The server command type. |
Methods
| Improve this Doc View SourceExecuteAsync(TCommand, CancellationToken)
Executes the server command.
Declaration
Task ExecuteAsync(TCommand command, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| TCommand | command | The command to execute. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | The task. |