Class DelegateServerCommandExecutor
This IServerCommandExecutor implementation creates a compiled delegate to call the server command handlers.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.ServerCommands
Assembly: FubarDev.FtpServer.dll
Syntax
public class DelegateServerCommandExecutor : IServerCommandExecutor
Constructors
| Improve this Doc View SourceDelegateServerCommandExecutor(IFtpConnectionAccessor)
Initializes a new instance of the DelegateServerCommandExecutor class.
Declaration
public DelegateServerCommandExecutor(IFtpConnectionAccessor ftpConnectionAccessor)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnectionAccessor | ftpConnectionAccessor | Accessor to get the FTP connection. |
Methods
| Improve this Doc View SourceExecuteAsync(IServerCommand, CancellationToken)
Execute the given server command.
Declaration
public Task ExecuteAsync(IServerCommand serverCommand, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IServerCommand | serverCommand | The server command to execute. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task | The task. |