55using System . Collections . Generic ;
66using System . Linq ;
77using System . Text ;
8- using Microsoft . AspNetCore . Builder ;
9- using Microsoft . AspNetCore . ResponseCaching . Internal ;
108using Microsoft . Extensions . ObjectPool ;
119using Microsoft . Extensions . Options ;
1210using Microsoft . Extensions . Primitives ;
1311
1412namespace Microsoft . AspNetCore . ResponseCaching . Internal
1513{
16- public class ResponseCacheKeyProvider : IResponseCacheKeyProvider
14+ public class ResponseCachingKeyProvider : IResponseCachingKeyProvider
1715 {
1816 // Use the record separator for delimiting components of the cache key to avoid possible collisions
1917 private static readonly char KeyDelimiter = '\x1e ' ;
2018
2119 private readonly ObjectPool < StringBuilder > _builderPool ;
22- private readonly ResponseCacheOptions _options ;
20+ private readonly ResponseCachingOptions _options ;
2321
24- public ResponseCacheKeyProvider ( ObjectPoolProvider poolProvider , IOptions < ResponseCacheOptions > options )
22+ public ResponseCachingKeyProvider ( ObjectPoolProvider poolProvider , IOptions < ResponseCachingOptions > options )
2523 {
2624 if ( poolProvider == null )
2725 {
@@ -36,13 +34,13 @@ public ResponseCacheKeyProvider(ObjectPoolProvider poolProvider, IOptions<Respon
3634 _options = options . Value ;
3735 }
3836
39- public IEnumerable < string > CreateLookupVaryByKeys ( ResponseCacheContext context )
37+ public IEnumerable < string > CreateLookupVaryByKeys ( ResponseCachingContext context )
4038 {
4139 return new string [ ] { CreateStorageVaryByKey ( context ) } ;
4240 }
4341
4442 // GET<delimiter>/PATH
45- public string CreateBaseKey ( ResponseCacheContext context )
43+ public string CreateBaseKey ( ResponseCachingContext context )
4644 {
4745 if ( context == null )
4846 {
@@ -76,7 +74,7 @@ public string CreateBaseKey(ResponseCacheContext context)
7674 }
7775
7876 // BaseKey<delimiter>H<delimiter>HeaderName=HeaderValue<delimiter>Q<delimiter>QueryName=QueryValue
79- public string CreateStorageVaryByKey ( ResponseCacheContext context )
77+ public string CreateStorageVaryByKey ( ResponseCachingContext context )
8078 {
8179 if ( context == null )
8280 {
@@ -86,7 +84,7 @@ public string CreateStorageVaryByKey(ResponseCacheContext context)
8684 var varyByRules = context . CachedVaryByRules ;
8785 if ( varyByRules == null )
8886 {
89- throw new InvalidOperationException ( $ "{ nameof ( CachedVaryByRules ) } must not be null on the { nameof ( ResponseCacheContext ) } ") ;
87+ throw new InvalidOperationException ( $ "{ nameof ( CachedVaryByRules ) } must not be null on the { nameof ( ResponseCachingContext ) } ") ;
9088 }
9189
9290 if ( ( StringValues . IsNullOrEmpty ( varyByRules . Headers ) && StringValues . IsNullOrEmpty ( varyByRules . QueryKeys ) ) )
0 commit comments