UnsafeTokenCacheOptions.RefreshCacheAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The TokenCacheRefreshArgs containing information about the current state of the cache.
- cancellationToken
- CancellationToken
The CancellationToken controlling the lifetime of this operation.
Returns
Applies to
Azure SDK for .NET