Interface IFtpDataConnectionValidator
Interface for FTP data connection validation.
Namespace: FubarDev.FtpServer.DataConnection
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IFtpDataConnectionValidator
Methods
| Improve this Doc View SourceValidateAsync(IFtpConnection, IFtpDataConnectionFeature, IFtpDataConnection, CancellationToken)
Checks if the FTP data connection is valid.
Declaration
Task<ValidationResult? > ValidateAsync(IFtpConnection connection, IFtpDataConnectionFeature dataConnectionFeature, IFtpDataConnection dataConnection, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnection | connection | The FTP connection that created the data connection. |
IFtpDataConnectionFeature | dataConnectionFeature | The FTP data connection feature that crated the data connection. |
IFtpDataConnection | dataConnection | The created data connection that needs to be validated. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<Nullable<ValidationResult>> | The task returning the validation result. |