2 implementations of IServiceProvidersFeature
Microsoft.AspNetCore.Http (2)
Features\RequestServicesFeature.cs (1)
11
public class RequestServicesFeature :
IServiceProvidersFeature
, IDisposable, IAsyncDisposable
Features\ServiceProvidersFeature.cs (1)
9
public class ServiceProvidersFeature :
IServiceProvidersFeature
16 references to IServiceProvidersFeature
Microsoft.AspNetCore.Http (7)
DefaultHttpContext.cs (3)
29
private static readonly Func<DefaultHttpContext,
IServiceProvidersFeature
> _newServiceProvidersFeature = context => new RequestServicesFeature(context, context.ServiceScopeFactory);
120
private
IServiceProvidersFeature
ServiceProvidersFeature =>
253
public
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)
53
var services = _features.Get<
IServiceProvidersFeature
>()?.RequestServices;
77
var services = _features.Get<
IServiceProvidersFeature
>()?.RequestServices;
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\HttpProtocol.Generated.cs (9)
60
internal protected
IServiceProvidersFeature
? _currentIServiceProvidersFeature;
212
else if (key == typeof(
IServiceProvidersFeature
))
364
else if (key == typeof(
IServiceProvidersFeature
))
366
_currentIServiceProvidersFeature = (
IServiceProvidersFeature
?)value;
518
else if (typeof(TFeature) == typeof(
IServiceProvidersFeature
))
520
feature = Unsafe.As<
IServiceProvidersFeature
?, TFeature?>(ref _currentIServiceProvidersFeature);
678
else if (typeof(TFeature) == typeof(
IServiceProvidersFeature
))
680
_currentIServiceProvidersFeature = Unsafe.As<TFeature?,
IServiceProvidersFeature
?>(ref feature);
828
yield return new KeyValuePair<Type, object>(typeof(
IServiceProvidersFeature
), _currentIServiceProvidersFeature);