Interface IFtpServerHost
Interface for a simple FTP server host.
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.dll
Syntax
public interface IFtpServerHost
Remarks
This services is used to start and stop all IFtpService instances.
Methods
| Improve this Doc View SourceStartAsync(CancellationToken)
Must be called to start the FTP server host.
Declaration
Task StartAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Indicates that the start process has been aborted. |
Returns
Type | Description |
---|---|
Task | The task. |
Remarks
Starts all FTP server services.
StopAsync(CancellationToken)
Must be called for a graceful shutdown of the FTP server host.
Declaration
Task StopAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Indicates that the shutdown process should no longer be graceful. |
Returns
Type | Description |
---|---|
Task | The task. |
Remarks
Stops all FTP server services.