Share via


UnsafeTokenCacheOptions.RefreshCacheAsync Method

Definition

Overloads

RefreshCacheAsync()

Returns the bytes used to initialize the token cache. This would most likely have come from the TokenCacheUpdatedArgs. This implementation will get called by the default implementation of RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken). It is recommended to provide an implementation for RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken) rather than this method.

RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken)

Returns the bytes used to initialize the token cache. This would most likely have come from the TokenCacheUpdatedArgs. It is recommended that if this method is overriden, there is no need to provide a duplicate implementation for the parameterless RefreshCacheAsync().

RefreshCacheAsync()

Source:
UnsafeTokenCacheOptions.cs
Source:
UnsafeTokenCacheOptions.cs

Returns the bytes used to initialize the token cache. This would most likely have come from the TokenCacheUpdatedArgs. This implementation will get called by the default implementation of RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken). It is recommended to provide an implementation for RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken) rather than this method.

protected internal abstract System.Threading.Tasks.Task<ReadOnlyMemory<byte>> RefreshCacheAsync ();
abstract member RefreshCacheAsync : unit -> System.Threading.Tasks.Task<ReadOnlyMemory<byte>>
Protected Friend MustOverride Function RefreshCacheAsync () As Task(Of ReadOnlyMemory(Of Byte))

Returns

Applies to

RefreshCacheAsync(TokenCacheRefreshArgs, CancellationToken)

Source:
UnsafeTokenCacheOptions.cs
Source:
UnsafeTokenCacheOptions.cs

Returns the bytes used to initialize the token cache. This would most likely have come from the TokenCacheUpdatedArgs. It is recommended that if this method is overriden, there is no need to provide a duplicate implementation for the parameterless RefreshCacheAsync().

protected internal virtual System.Threading.Tasks.Task<Azure.Identity.TokenCacheData> RefreshCacheAsync (Azure.Identity.TokenCacheRefreshArgs args, System.Threading.CancellationToken cancellationToken = default);
abstract member RefreshCacheAsync : Azure.Identity.TokenCacheRefreshArgs * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Identity.TokenCacheData>
override this.RefreshCacheAsync : Azure.Identity.TokenCacheRefreshArgs * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Identity.TokenCacheData>
Protected Friend Overridable Function RefreshCacheAsync (args As TokenCacheRefreshArgs, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenCacheData)

Parameters

args
TokenCacheRefreshArgs

The TokenCacheRefreshArgs containing information about the current state of the cache.

cancellationToken
CancellationToken

The CancellationToken controlling the lifetime of this operation.

Returns

Applies to