8 instantiations of ResponseCachingFeature
Microsoft.AspNetCore.Mvc.Core.Test (2)
Filters\ResponseCacheFilterExecutorTest.cs (1)
402
context.HttpContext.Features.Set<IResponseCachingFeature>(new
ResponseCachingFeature
());
ResponseCacheAttributeTest.cs (1)
213
context.HttpContext.Features.Set<IResponseCachingFeature>(new
ResponseCachingFeature
());
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
398
context.Features.Set<IResponseCachingFeature>(new
ResponseCachingFeature
());
Microsoft.AspNetCore.ResponseCaching.Tests (5)
ResponseCachingFeatureTests.cs (2)
27
new
ResponseCachingFeature
().VaryByQueryKeys = value;
52
Assert.Throws<ArgumentException>(() => new
ResponseCachingFeature
().VaryByQueryKeys = value);
ResponseCachingMiddlewareTests.cs (3)
526
context.HttpContext.Features.Set<IResponseCachingFeature>(new
ResponseCachingFeature
()
555
context.HttpContext.Features.Set<IResponseCachingFeature>(new
ResponseCachingFeature
()
605
context.HttpContext.Features.Set<IResponseCachingFeature>(new
ResponseCachingFeature
()
1 reference to ResponseCachingFeature
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
396
throw new InvalidOperationException($"Another instance of {nameof(
ResponseCachingFeature
)} already exists. Only one instance of {nameof(ResponseCachingMiddleware)} can be configured for an application.");