6 writes to ApplicationServices
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
2883ApplicationServices = applicationServices;
Microsoft.AspNetCore.Mvc.Core (3)
Routing\ActionEndpointFactory.cs (3)
108ApplicationServices = _serviceProvider, 154ApplicationServices = _serviceProvider, 225ApplicationServices = _serviceProvider,
Microsoft.AspNetCore.Routing (2)
EndpointDataSource.cs (1)
58ApplicationServices = context.ApplicationServices,
RouteEndpointDataSource.cs (1)
177ApplicationServices = _applicationServices,
12 references to ApplicationServices
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
274var serviceProvider = options?.ServiceProvider ?? options?.EndpointBuilder?.ApplicationServices ?? EmptyServiceProvider.Instance;
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateFactoryTests.cs (2)
3295if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService) 3311if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService)
RequestDelegateGenerator\SharedTypes.cs (2)
631if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService) 685if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (2)
631if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService) 685if (builder.ApplicationServices.GetRequiredService<MetadataService>() is { } metadataService)
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
470ApplicationServices = builder.ApplicationServices,
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
105var applicationServices = routeEndpointBuilder.ApplicationServices;
Microsoft.AspNetCore.Routing (2)
RequestDelegateFilterPipelineBuilder.cs (2)
21var serviceProvider = options.ServiceProvider ?? options.EndpointBuilder.ApplicationServices; 28ApplicationServices = options.EndpointBuilder.ApplicationServices
Microsoft.AspNetCore.Routing.Tests (1)
Builder\GroupTest.cs (1)
192endpointBuilderServiceProvider = builder.ApplicationServices;