8 writes to ServiceProvider
Microsoft.AspNetCore.Http.Extensions.Tests (6)
RequestDelegateFactoryTests.cs (6)
872var factoryResult = RequestDelegateFactory.Create(action, new RequestDelegateFactoryOptions() { ServiceProvider = mock.Object }); 1184var factoryResult = RequestDelegateFactory.Create(action, options: new() { ServiceProvider = services }); 1412Assert.Throws<NotSupportedException>(() => RequestDelegateFactory.Create(TestAction, new() { ServiceProvider = httpContext.RequestServices })); 1746RequestDelegateFactoryOptions options = new() { ServiceProvider = services }; 3022var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3037var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider });
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1547var options = new RequestDelegateFactoryOptions { ServiceProvider = serviceProvider, DisableInferBodyFromParameters = shouldDisableInferredBodyForMethod };
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
276ServiceProvider = _applicationServices,
2 references to ServiceProvider
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
274var serviceProvider = options?.ServiceProvider ?? options?.EndpointBuilder?.ApplicationServices ?? EmptyServiceProvider.Instance;
Microsoft.AspNetCore.Routing (1)
RequestDelegateFilterPipelineBuilder.cs (1)
21var serviceProvider = options.ServiceProvider ?? options.EndpointBuilder.ApplicationServices;