Interface IFtpService
Defines methods for services required to run the FTP server.
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IFtpService
Methods
| Improve this Doc View SourceStartAsync(CancellationToken)
Triggered when the application host is ready to start the service.
Declaration
Task StartAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Indicates that the start process has been aborted. |
Returns
Type | Description |
---|---|
Task | The task. |
StopAsync(CancellationToken)
Triggered when the application host is performing a graceful shutdown.
Declaration
Task StopAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Indicates that the shutdown process should no longer be graceful. |
Returns
Type | Description |
---|---|
Task | The task. |