2 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
16 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.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);