Share via


MsalAbstractTokenCacheProvider.OnBeforeWriteAsync Method

Definition

If you want to ensure that no concurrent write takes place, use this notification to place a lock on the entry.

protected virtual System.Threading.Tasks.Task OnBeforeWriteAsync (Microsoft.Identity.Client.TokenCacheNotificationArgs args);
abstract member OnBeforeWriteAsync : Microsoft.Identity.Client.TokenCacheNotificationArgs -> System.Threading.Tasks.Task
override this.OnBeforeWriteAsync : Microsoft.Identity.Client.TokenCacheNotificationArgs -> System.Threading.Tasks.Task
Protected Overridable Function OnBeforeWriteAsync (args As TokenCacheNotificationArgs) As Task

Parameters

args
TokenCacheNotificationArgs

Token cache notification arguments.

Returns

A Task that represents a completed operation.

Applies to