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