4 implementations of IServiceProvidersFeature
Microsoft.AspNetCore.Http (2)
Features\RequestServicesFeature.cs (1)
11public class RequestServicesFeature : IServiceProvidersFeature, IDisposable, IAsyncDisposable
Features\ServiceProvidersFeature.cs (1)
9public class ServiceProvidersFeature : IServiceProvidersFeature
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
466public class ReplaceServiceProvidersFeatureFilter : IStartupFilter, IServiceProvidersFeature 514public class NullServiceProvidersFeatureFilter : IStartupFilter, IServiceProvidersFeature
22 references to IServiceProvidersFeature
Microsoft.AspNetCore.Http (7)
DefaultHttpContext.cs (3)
29private static readonly Func<DefaultHttpContext, IServiceProvidersFeature> _newServiceProvidersFeature = context => new RequestServicesFeature(context, context.ServiceScopeFactory); 120private IServiceProvidersFeature ServiceProvidersFeature => 253public IServiceProvidersFeature? ServiceProviders;
Features\RequestServicesFeature.cs (1)
9/// An implementation for <see cref="IServiceProvidersFeature"/> for accessing request services.
Features\ServiceProvidersFeature.cs (1)
7/// Default implementation for <see cref="IServiceProvidersFeature"/>.
Internal\ResponseCookies.cs (2)
53var services = _features.Get<IServiceProvidersFeature>()?.RequestServices; 77var services = _features.Get<IServiceProvidersFeature>()?.RequestServices;
Microsoft.AspNetCore.Http.Tests (1)
ResponseCookiesTest.cs (1)
36features.Set<IServiceProvidersFeature>(new ServiceProvidersFeature() { RequestServices = services.BuildServiceProvider() });
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.Features.cs (1)
13private static readonly Type IServiceProvidersFeatureType = typeof(global::Microsoft.AspNetCore.Http.Features.IServiceProvidersFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\HttpProtocol.Generated.cs (9)
60internal protected IServiceProvidersFeature? _currentIServiceProvidersFeature; 212else if (key == typeof(IServiceProvidersFeature)) 364else if (key == typeof(IServiceProvidersFeature)) 366_currentIServiceProvidersFeature = (IServiceProvidersFeature?)value; 518else if (typeof(TFeature) == typeof(IServiceProvidersFeature)) 520feature = Unsafe.As<IServiceProvidersFeature?, TFeature?>(ref _currentIServiceProvidersFeature); 678else if (typeof(TFeature) == typeof(IServiceProvidersFeature)) 680_currentIServiceProvidersFeature = Unsafe.As<TFeature?, IServiceProvidersFeature?>(ref feature); 828yield return new KeyValuePair<Type, object>(typeof(IServiceProvidersFeature), _currentIServiceProvidersFeature);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
HttpProtocolFeatureCollection.cs (2)
61public IServiceProvidersFeature Get_IServiceProvidersFeature() 63return _collection.Get<IServiceProvidersFeature>();
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
484context.Features.Set<IServiceProvidersFeature>(this); 526context.Features.Set<IServiceProvidersFeature>(this);