3 implementations of IResponseCookiesFeature
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyMiddleware.cs (1)
73private sealed class CookiesWrapperFeature : IResponseCookiesFeature
Microsoft.AspNetCore.CookiePolicy.Test (1)
CookiePolicyTests.cs (1)
475private class TestCookieFeature : IResponseCookiesFeature
Microsoft.AspNetCore.Http (1)
Features\ResponseCookiesFeature.cs (1)
12public class ResponseCookiesFeature : IResponseCookiesFeature
30 references to IResponseCookiesFeature
Microsoft.AspNetCore.CookiePolicy (5)
CookiePolicyMiddleware.cs (3)
65var feature = context.Features.Get<IResponseCookiesFeature>() ?? new ResponseCookiesFeature(context.Features); 67context.Features.Set<IResponseCookiesFeature>(new CookiesWrapperFeature(wrapper));
ResponseCookiesWrapper.cs (2)
19public ResponseCookiesWrapper(HttpContext context, CookiePolicyOptions options, IResponseCookiesFeature feature, ILogger logger) 29private IResponseCookiesFeature Feature { get; }
Microsoft.AspNetCore.CookiePolicy.Test (1)
CookiePolicyTests.cs (1)
329context.Features.Set<IResponseCookiesFeature>(new TestCookieFeature());
Microsoft.AspNetCore.Http (6)
Features\ResponseCookiesFeature.cs (3)
10/// Default implementation of <see cref="IResponseCookiesFeature"/>. 22/// <see cref="IResponseCookiesFeature"/> and the <see cref="IHttpResponseFeature"/>. 34/// <see cref="IResponseCookiesFeature"/> and the <see cref="IHttpResponseFeature"/>.
Internal\DefaultHttpResponse.cs (3)
19private static readonly Func<IFeatureCollection, IResponseCookiesFeature?> _newResponseCookiesFeature = f => new ResponseCookiesFeature(f); 51private IResponseCookiesFeature ResponseCookiesFeature => 177public IResponseCookiesFeature? Cookies;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
CookieTempDataProviderTest.cs (6)
41httpContext.Features.Set<IResponseCookiesFeature>(new FakeResponseCookiesFeature(responseCookies)); 127httpContext.Features.Set<IResponseCookiesFeature>(new FakeResponseCookiesFeature(responseCookies)); 162httpContext.Features.Set<IResponseCookiesFeature>(new FakeResponseCookiesFeature(responseCookies)); 198httpContext.Features.Set<IResponseCookiesFeature>(new FakeResponseCookiesFeature(responseCookies)); 247httpContext.Features.Set<IResponseCookiesFeature>(new FakeResponseCookiesFeature(responseCookies)); 472private class FakeResponseCookiesFeature(IResponseCookies cookies) : IResponseCookiesFeature
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.Features.cs (1)
20private static readonly Type IResponseCookiesFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IResponseCookiesFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\HttpProtocol.Generated.cs (9)
68internal protected IResponseCookiesFeature? _currentIResponseCookiesFeature; 256else if (key == typeof(IResponseCookiesFeature)) 408else if (key == typeof(IResponseCookiesFeature)) 410_currentIResponseCookiesFeature = (IResponseCookiesFeature?)value; 562else if (typeof(TFeature) == typeof(IResponseCookiesFeature)) 564feature = Unsafe.As<IResponseCookiesFeature?, TFeature?>(ref _currentIResponseCookiesFeature); 722else if (typeof(TFeature) == typeof(IResponseCookiesFeature)) 724_currentIResponseCookiesFeature = Unsafe.As<TFeature?, IResponseCookiesFeature?>(ref feature); 872yield return new KeyValuePair<Type, object>(typeof(IResponseCookiesFeature), _currentIResponseCookiesFeature);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
124public IResponseCookiesFeature Get_IResponseCookiesFeature() 126return _collection.Get<IResponseCookiesFeature>();