4 references to TryAddScoped
Microsoft.AspNetCore.Components.Endpoints (3)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (3)
59
services.
TryAddScoped
<IComponentPrerenderer>(services => services.GetRequiredService<EndpointHtmlRenderer>());
65
services.
TryAddScoped
<PersistentComponentState>(sp => sp.GetRequiredService<ComponentStatePersistenceManager>().State);
70
services.
TryAddScoped
<IRoutingStateProvider>(sp => sp.GetRequiredService<EndpointRoutingStateProvider>());
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ComponentServiceCollectionExtensions.cs (1)
73
services.
TryAddScoped
(s => s.GetRequiredService<ICircuitAccessor>().Circuit);