Class IAccountContextExtensions
Extension methods for IAccountContext.
Inheritance
IAccountContextExtensions
Namespace: Certes
Assembly: Certes.dll
Syntax
public static class IAccountContextExtensions
Methods
| Edit this page View SourceDeactivate(Task<IAccountContext>, CancellationToken)
Deactivates the current account.
Declaration
public static Task<Account> Deactivate(this Task<IAccountContext> account, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Task<IAccountContext> | account | The account task. |
| CancellationToken | cancellationToken | Cancels waiting for the account task and deactivation. |
Returns
| Type | Description |
|---|---|
| Task<Account> | The account deactivated. |
Remarks
If the wait is cancelled, the supplied task continues. The caller must observe its eventual result or exception.
Location(Task<IAccountContext>, CancellationToken)
Gets the location of the account.
Declaration
public static Task<Uri> Location(this Task<IAccountContext> account, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Task<IAccountContext> | account | The account. |
| CancellationToken | cancellationToken | Cancels waiting for the account task, not the task itself. |
Returns
| Type | Description |
|---|---|
| Task<Uri> | The location URI. |
Remarks
If the wait is cancelled, the supplied task continues. The caller must observe its eventual result or exception.