Interface IAuthorizationAction
Interface for actions that need to be executed upon successful authorization.
Namespace: FubarDev.FtpServer.Authorization
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IAuthorizationAction
Properties
| Improve this Doc View SourceLevel
Gets the level of importance.
Declaration
int Level { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Authorization actions with a higher level are executed first. The levels 1000 (inclusive) to 2000 (inclusive) are used internally to fill the connection information.
Methods
| Improve this Doc View SourceAuthorizedAsync(IAccountInformation, CancellationToken)
Notification of successful authorization.
Declaration
Task AuthorizedAsync(IAccountInformation accountInformation, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IAccountInformation | accountInformation | The account information that led to successful authorization. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task | The task. |