@@ -110,9 +110,9 @@ protected override async Task RemoveKeyAsync(string cacheKey, CacheSerializerHin
110110 {
111111 const string remove = "Remove" ;
112112
113- if ( ! string . IsNullOrEmpty ( cacheSerializerHints . ShouldNotUseDistributedCache ) )
113+ if ( ! string . IsNullOrEmpty ( cacheSerializerHints . ShouldNotUseDistributedCacheMessage ) )
114114 {
115- throw new InvalidOperationException ( TokenCacheErrorMessage . CannotUseDistributedCache + " " + cacheSerializerHints ? . ShouldNotUseDistributedCache ) ;
115+ throw new InvalidOperationException ( TokenCacheErrorMessage . CannotUseDistributedCache + " " + cacheSerializerHints ? . ShouldNotUseDistributedCacheMessage ) ;
116116 }
117117
118118 if ( _memoryCache != null )
@@ -154,9 +154,9 @@ await L2OperationWithRetryOnFailureAsync(
154154 byte [ ] ? result = null ;
155155 var telemetryData = cacheSerializerHints . TelemetryData ;
156156
157- if ( ! string . IsNullOrEmpty ( cacheSerializerHints . ShouldNotUseDistributedCache ) )
157+ if ( ! string . IsNullOrEmpty ( cacheSerializerHints . ShouldNotUseDistributedCacheMessage ) )
158158 {
159- throw new InvalidOperationException ( TokenCacheErrorMessage . CannotUseDistributedCache + " " + cacheSerializerHints ? . ShouldNotUseDistributedCache ) ;
159+ throw new InvalidOperationException ( TokenCacheErrorMessage . CannotUseDistributedCache + " " + cacheSerializerHints ? . ShouldNotUseDistributedCacheMessage ) ;
160160 }
161161
162162 if ( _memoryCache != null )
@@ -250,9 +250,9 @@ protected override async Task WriteCacheBytesAsync(
250250
251251 DateTimeOffset ? cacheExpiry = cacheSerializerHints ? . SuggestedCacheExpiry ;
252252
253- if ( ! string . IsNullOrEmpty ( cacheSerializerHints ? . ShouldNotUseDistributedCache ) )
253+ if ( ! string . IsNullOrEmpty ( cacheSerializerHints ? . ShouldNotUseDistributedCacheMessage ) )
254254 {
255- throw new InvalidOperationException ( TokenCacheErrorMessage . CannotUseDistributedCache + " " + cacheSerializerHints ? . ShouldNotUseDistributedCache ) ;
255+ throw new InvalidOperationException ( TokenCacheErrorMessage . CannotUseDistributedCache + " " + cacheSerializerHints ? . ShouldNotUseDistributedCacheMessage ) ;
256256 }
257257
258258 if ( _memoryCache != null )
0 commit comments