Implemented interface member:
property
ServiceProvider
Microsoft.Extensions.DependencyInjection.IServiceScope.ServiceProvider
34 references to ServiceProvider
Microsoft.AspNetCore.Components (1)
OwningComponentBase.cs (1)
43
return _scope.Value.
ServiceProvider
;
Microsoft.AspNetCore.Components.Server (13)
Circuits\CircuitFactory.cs (9)
47
var jsRuntime = (RemoteJSRuntime)scope.
ServiceProvider
.GetRequiredService<IJSRuntime>();
50
var navigationManager = (RemoteNavigationManager)scope.
ServiceProvider
.GetRequiredService<NavigationManager>();
51
var navigationInterception = (RemoteNavigationInterception)scope.
ServiceProvider
.GetRequiredService<INavigationInterception>();
52
var scrollToLocationHash = (RemoteScrollToLocationHash)scope.
ServiceProvider
.GetRequiredService<IScrollToLocationHash>();
71
var appLifetime = scope.
ServiceProvider
.GetRequiredService<ComponentStatePersistenceManager>();
76
var serverComponentDeserializer = scope.
ServiceProvider
.GetRequiredService<IServerComponentDeserializer>();
79
scope.
ServiceProvider
,
93
var circuitHandlers = components.Count == 0 ? [] : scope.
ServiceProvider
.GetServices<CircuitHandler>()
122
var antiforgery = scope.
ServiceProvider
.GetService<AntiforgeryStateProvider>();
Circuits\CircuitHost.cs (4)
69
Services = scope.
ServiceProvider
;
760
var appLifetime = _scope.
ServiceProvider
.GetRequiredService<ComponentStatePersistenceManager>();
766
_circuitHandlers = [.. _scope.
ServiceProvider
.GetServices<CircuitHandler>().OrderBy(h => h.Order)];
812
var antiforgery = scope.
ServiceProvider
.GetService<AntiforgeryStateProvider>();
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyHost.cs (2)
68
public IServiceProvider Services => _scope.
ServiceProvider
;
241
_scope.
ServiceProvider
.GetRequiredService<AntiforgeryStateProvider>();
Microsoft.AspNetCore.Components.WebView (1)
PageContext.cs (1)
29
public IServiceProvider ServiceProvider => _serviceScope.
ServiceProvider
;
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
153
context.RequestServices = scope.Value.
ServiceProvider
;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
765
newHttpContext.RequestServices = connection.ServiceScope.Value.
ServiceProvider
;
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TestingInfrastructureInheritanceTests.cs (1)
87
var sink = scope.
ServiceProvider
.GetRequiredService<DisposableService>();
Microsoft.AspNetCore.SignalR.Core (13)
Internal\DefaultHubDispatcher.cs (13)
87
var hubActivator = scope.
ServiceProvider
.GetRequiredService<IHubActivator<THub>>();
95
activity = StartActivity(SignalRServerActivitySource.OnConnected, ActivityKind.Internal, linkedActivity: null, scope.
ServiceProvider
, nameof(hub.OnConnectedAsync), headers: null, _logger);
99
var context = new HubLifetimeContext(connection.HubCallerContext, scope.
ServiceProvider
, hub);
123
var hubActivator = scope.
ServiceProvider
.GetRequiredService<IHubActivator<THub>>();
130
activity = StartActivity(SignalRServerActivitySource.OnDisconnected, ActivityKind.Internal, linkedActivity: null, scope.
ServiceProvider
, nameof(hub.OnDisconnectedAsync), headers: null, _logger);
134
var context = new HubLifetimeContext(connection.HubCallerContext, scope.
ServiceProvider
, hub);
330
hubActivator = scope.
ServiceProvider
.GetRequiredService<IHubActivator<THub>>();
333
if (!await IsHubMethodAuthorized(scope.
ServiceProvider
, connection, descriptor, hubMethodInvocationMessage.Arguments, hub))
407
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.
ServiceProvider
, hubMethodInvocationMessage.Target, hubMethodInvocationMessage.Headers, logger);
412
result = await dispatcher.ExecuteHubMethod(methodExecutor, hub, arguments, connection, scope.
ServiceProvider
);
525
var activity = StartActivity(SignalRServerActivitySource.InvocationIn, ActivityKind.Server, connection.OriginalActivity, scope.
ServiceProvider
, hubMethodInvocationMessage.Target, hubMethodInvocationMessage.Headers, _logger);
539
result = await ExecuteHubMethod(descriptor.MethodExecutor, hub, arguments, connection, scope.
ServiceProvider
);
746
arguments[parameterPointer] = descriptor.GetService(scope.
ServiceProvider
, parameterPointer, descriptor.OriginalParameterTypes[parameterPointer]);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
81
var healthCheck = registration.Factory(scope.
ServiceProvider
);