Interface IFtpStateMachine<TStatus>
Interface for a state machine for the FTP server.
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IFtpStateMachine<out TStatus>
where TStatus : Enum
Type Parameters
Name | Description |
---|---|
TStatus | The type of the status of the state machine. |
Properties
| Improve this Doc View SourceStatus
Gets the current status.
Declaration
TStatus Status { get; }
Property Value
Type | Description |
---|---|
TStatus |
Methods
| Improve this Doc View SourceExecuteAsync(FtpCommand, CancellationToken)
Handles an FTP command.
Declaration
Task<IFtpResponse? > ExecuteAsync(FtpCommand ftpCommand, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
FtpCommand | ftpCommand | The FTP command to handle. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<Nullable<IFtpResponse>> | The task returning the response. |
Reset()
Resets the state machine.
Declaration
void Reset()