Class FtpConnectionIdleCheck
An activity-based keep-alive detection.
Inherited Members
Namespace: FubarDev.FtpServer.ConnectionChecks
Assembly: FubarDev.FtpServer.dll
Syntax
public class FtpConnectionIdleCheck : IFtpConnectionCheck, IDisposable
Constructors
| Improve this Doc View SourceFtpConnectionIdleCheck(IFtpConnectionAccessor, IOptions<FtpConnectionOptions>)
Initializes a new instance of the FtpConnectionIdleCheck class.
Declaration
public FtpConnectionIdleCheck(IFtpConnectionAccessor connectionAccessor, IOptions<FtpConnectionOptions> options)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnectionAccessor | connectionAccessor | The FTP connection accessor. |
IOptions<FtpConnectionOptions> | options | FTP connection options. |
Methods
| Improve this Doc View SourceCheck(FtpConnectionCheckContext)
Check if the connection is usable.
Declaration
public FtpConnectionCheckResult Check(FtpConnectionCheckContext context)
Parameters
Type | Name | Description |
---|---|---|
FtpConnectionCheckContext | context | The FTP connection check context. |
Returns
Type | Description |
---|---|
FtpConnectionCheckResult | FtpConnectionCheckResult that contains the result of the check. |
Dispose()
Declaration
public void Dispose()