/// <summary> /// Initializes a new instance of the <see cref="MsalDistributedTokenCacheAdapter"/> class. /// </summary> /// <param name="memoryCache"></param> /// <param name="cacheOptions"></param> public MsalDistributedTokenCacheAdapter( IDistributedCache memoryCache, IOptions <MsalDistributedTokenCacheAdapterOptions> cacheOptions) { if (cacheOptions == null) { throw new ArgumentNullException(nameof(cacheOptions)); } _distributedCache = memoryCache; _cacheOptions = cacheOptions.Value; }