AuthTokenManagerGetToken Method

Returns a token if one is required. If the token is being updated, the call is blocked waiting for the token to be reauthorized. If the token is current, it is returned.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.0
C#
public Task<AccessToken> GetToken(
	CancellationToken cancellationToken
)

Parameters

cancellationToken  CancellationToken

Return Value

TaskAccessToken
returns current token or null indicating a token is not required

See Also