Class BackgroundTaskLifetimeFeature
Default implementation of IBackgroundTaskLifetimeFeature.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.Features.Impl
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class BackgroundTaskLifetimeFeature : IBackgroundTaskLifetimeFeature
Constructors
| Improve this Doc View SourceBackgroundTaskLifetimeFeature(IFtpCommandBase, FtpCommand, Func<CancellationToken, Task>, CancellationToken)
Initializes a new instance of the BackgroundTaskLifetimeFeature class.
Declaration
public BackgroundTaskLifetimeFeature(IFtpCommandBase commandHandler, FtpCommand command, Func<CancellationToken, Task> backgroundTask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IFtpCommandBase | commandHandler | The FTP command handler. |
| FtpCommand | command | The FTP command to be run in the background. |
| Func<CancellationToken, Task> | backgroundTask | The task that gets run in the background. |
| CancellationToken | cancellationToken | The cancellation token. |
Properties
| Improve this Doc View SourceCommand
Declaration
public FtpCommand Command { get; }
Property Value
| Type | Description |
|---|---|
| FtpCommand |
Handler
Declaration
public IFtpCommandBase Handler { get; }
Property Value
| Type | Description |
|---|---|
| IFtpCommandBase |
Task
Declaration
public Task Task { get; }
Property Value
| Type | Description |
|---|---|
| Task |
Methods
| Improve this Doc View SourceAbort()
Declaration
public void Abort()