Class StorCommandHandler
This class implements the STOR command (4.1.3.).
Inherited Members
Namespace: FubarDev.FtpServer.CommandHandlers
Assembly: FubarDev.FtpServer.Commands.dll
Syntax
[FtpCommandHandler("STOR", true, true)]
public class StorCommandHandler : FtpCommandHandler, IFtpCommandHandler, IFtpCommandBase, IFeatureHost
Constructors
| Improve this Doc View SourceStorCommandHandler(IBackgroundTransferWorker, Nullable<ILogger<StorCommandHandler>>)
Initializes a new instance of the StorCommandHandler class.
Declaration
public StorCommandHandler(IBackgroundTransferWorker backgroundTransferWorker, ILogger<StorCommandHandler>? logger = default(ILogger<StorCommandHandler>? ))
Parameters
Type | Name | Description |
---|---|---|
IBackgroundTransferWorker | backgroundTransferWorker | The background transfer worker service. |
Nullable<ILogger<StorCommandHandler>> | logger | The logger. |
Methods
| Improve this Doc View SourceProcess(FtpCommand, CancellationToken)
Declaration
public override Task<IFtpResponse? > Process(FtpCommand command, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FtpCommand | command | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Nullable<IFtpResponse>> |