Microsoft.Identity.Client.ITokenCache
This is the interface that implements the public access to cache operations.
With CacheV2, this should only be necessary if the caller is persisting
the cache in their own store, since this will provide the serialize/deserialize
and before/after notifications used in that scenario.
See https://aka.ms/aka.ms/msal-net-token-cache-serialization
Sets a delegate to be notified after any library method accesses the cache. This gives an option to the
delegate to serialize a cache entry for the application and accounts specified in the TokenCacheNotificationArgs.
See https://aka.ms/msal-net-token-cache-serialization.
If you need async/task-based callbacks, please use SetAfterAccessAsync instead.
Sets a delegate to be notified after any library method accesses the cache. This gives an option to the
delegate to serialize a cache entry for the application and accounts specified in the TokenCacheNotificationArgs.
See https://aka.ms/msal-net-token-cache-serialization.
This provides the same functionality as SetAfterAccess but it provides for an async/task-based callback.
Sets a delegate to be notified before any library method accesses the cache. This gives an option to the
delegate to deserialize a cache entry for the application and accounts specified in the TokenCacheNotificationArgs.
See https://aka.ms/msal-net-token-cache-serialization.
If you need async/task-based callbacks, please use SetBeforeAccessAsync instead.
Sets a delegate to be notified before any library method accesses the cache. This gives an option to the
delegate to deserialize a cache entry for the application and accounts specified in the TokenCacheNotificationArgs.
See https://aka.ms/msal-net-token-cache-serialization.
This provides the same functionality as SetBeforeAccess but it provides for an async/task-based callback.
Sets a delegate called before any library method writes to the cache. This gives an option to the delegate
to reload the cache state from a row in database and lock that row. That database row can then be unlocked in the delegate
registered with SetAfterAccess
If you need async/task-based callbacks, please use SetBeforeWriteAsync instead.
Sets a delegate called before any library method writes to the cache. This gives an option to the delegate
to reload the cache state from a row in database and lock that row. That database row can then be unlocked in the delegate
registered with SetAfterAccess
This provides the same functionality as SetBeforeWrite but it provides for an async/task-based callback.