Certes
Show / Hide Table of Contents

Class IAccountContextExtensions

Extension methods for IAccountContext.

Inheritance
object
IAccountContextExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Certes
Assembly: Certes.dll
Syntax
public static class IAccountContextExtensions

Methods

| Edit this page View Source

Deactivate(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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
© 2018 Certes Project
Back to top