<PackageReference Include="Microsoft.Identity.Client" Version="4.85.2" />

Microsoft.Identity.Client.TokenCacheNotificationArgs

public sealed class TokenCacheNotificationArgs
Contains parameters used by the MSAL call accessing the cache. See also ITokenCacheSerializer which contains methods to customize the cache serialization. For more details about the token cache see https://aka.ms/msal-net-web-token-cache
namespace Microsoft.Identity.Client { public sealed class TokenCacheNotificationArgs { public ITokenCacheSerializer TokenCache { get; } public string ClientId { get; } public IAccount Account { get; } public bool HasStateChanged { get; } public bool IsApplicationCache { get; } public string SuggestedCacheKey { get; } public bool HasTokens { get; } public CancellationToken CancellationToken { get; } public Guid CorrelationId { get; } public IEnumerable<string> RequestScopes { get; } public string RequestTenantId { get; } public DateTimeOffset? SuggestedCacheExpiry { get; } public IIdentityLogger IdentityLogger { get; } public bool PiiLoggingEnabled { get; } public TelemetryData TelemetryData { get; } public string NoDistributedCacheUseReason { get; } public TokenCacheNotificationArgs(ITokenCacheSerializer tokenCache, string clientId, IAccount account, bool hasStateChanged, bool isApplicationCache, string suggestedCacheKey, bool hasTokens, DateTimeOffset? suggestedCacheExpiry, CancellationToken cancellationToken); public TokenCacheNotificationArgs(ITokenCacheSerializer tokenCache, string clientId, IAccount account, bool hasStateChanged, bool isApplicationCache, string suggestedCacheKey, bool hasTokens, DateTimeOffset? suggestedCacheExpiry, CancellationToken cancellationToken, Guid correlationId); public TokenCacheNotificationArgs(ITokenCacheSerializer tokenCache, string clientId, IAccount account, bool hasStateChanged, bool isApplicationCache, string suggestedCacheKey, bool hasTokens, DateTimeOffset? suggestedCacheExpiry, CancellationToken cancellationToken, Guid correlationId, IEnumerable<string> requestScopes, string requestTenantId); public TokenCacheNotificationArgs(ITokenCacheSerializer tokenCache, string clientId, IAccount account, bool hasStateChanged, bool isApplicationCache, string suggestedCacheKey, bool hasTokens, DateTimeOffset? suggestedCacheExpiry, CancellationToken cancellationToken, Guid correlationId, IEnumerable<string> requestScopes, string requestTenantId, IIdentityLogger identityLogger, bool piiLoggingEnabled, TelemetryData telemetryData = null); } }