Interface IFtpCommandBase
The base interface for command handlers and extensions.
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IFtpCommandBase
Properties
| Improve this Doc View SourceNames
Gets a collection of all command names for this command.
Declaration
[Obsolete("The mapping from name to command handler is created by using the FtpCommandHandlerAttribute.")]
IReadOnlyCollection<string> Names { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<String> |
Methods
| Improve this Doc View SourceProcess(FtpCommand, CancellationToken)
Processes the command.
Declaration
Task<IFtpResponse? > Process(FtpCommand command, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FtpCommand | command | The command to process. |
CancellationToken | cancellationToken | The cancellation token to signal command abortion. |
Returns
Type | Description |
---|---|
Task<Nullable<IFtpResponse>> | The FTP response. |