/// <summary> /// Creates a new instance of <see cref="PersistentTokenCache"/> with the specified options. /// </summary> /// <param name="options">Options controlling the storage of the <see cref="PersistentTokenCache"/>.</param> public PersistentTokenCache(PersistentTokenCacheOptions options = null) { _allowUnencryptedStorage = options?.AllowUnencryptedStorage ?? false; _name = options?.Name ?? Constants.DefaultMsalTokenCacheName; _cacheHelperWrapper = new MsalCacheHelperWrapper(); }
internal PersistentTokenCache(PersistentTokenCacheOptions options, MsalCacheHelperWrapper cacheHelperWrapper) { _allowUnencryptedStorage = options?.AllowUnencryptedStorage ?? false; _name = options?.Name ?? Constants.DefaultMsalTokenCacheName; _cacheHelperWrapper = cacheHelperWrapper; }
/// <summary> /// Creates a new instance of <see cref="PersistentTokenCache"/> with the specified options. /// </summary> /// <param name="options">Options controlling the storage of the <see cref="PersistentTokenCache"/>.</param> public PersistentTokenCache(PersistentTokenCacheOptions options) { _allowUnencryptedStorage = options?.AllowUnencryptedStorage ?? false; _name = options?.Name; }