Class ReflectionServerCommandExecutor
This IServerCommandExecutor implementation calls the server command handler using reflection.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.ServerCommands
Assembly: FubarDev.FtpServer.dll
Syntax
public class ReflectionServerCommandExecutor : IServerCommandExecutor
Constructors
| Improve this Doc View SourceReflectionServerCommandExecutor(IFtpConnectionAccessor)
Initializes a new instance of the ReflectionServerCommandExecutor class.
Declaration
public ReflectionServerCommandExecutor(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. |