Class DefaultFtpCommandDispatcher
Default implementation of IFtpCommandDispatcher.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.Commands
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class DefaultFtpCommandDispatcher : IFtpCommandDispatcher
Constructors
| Improve this Doc View SourceDefaultFtpCommandDispatcher(IFtpConnection, IFtpLoginStateMachine, IFtpCommandActivator, IEnumerable<IFtpCommandMiddleware>, Nullable<ILogger<DefaultFtpCommandDispatcher>>)
Initializes a new instance of the DefaultFtpCommandDispatcher class.
Declaration
public DefaultFtpCommandDispatcher(IFtpConnection connection, IFtpLoginStateMachine loginStateMachine, IFtpCommandActivator commandActivator, IEnumerable<IFtpCommandMiddleware> middlewareObjects, ILogger<DefaultFtpCommandDispatcher>? logger = default(ILogger<DefaultFtpCommandDispatcher>? ))
Parameters
Type | Name | Description |
---|---|---|
IFtpConnection | connection | The FTP connection. |
IFtpLoginStateMachine | loginStateMachine | The login state machine. |
IFtpCommandActivator | commandActivator | The command activator. |
IEnumerable<IFtpCommandMiddleware> | middlewareObjects | The list of middleware objects. |
Nullable<ILogger<DefaultFtpCommandDispatcher>> | logger | The logger. |
Methods
| Improve this Doc View SourceDispatchAsync(FtpContext, CancellationToken)
Declaration
public Task DispatchAsync(FtpContext context, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FtpContext | context | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |