36 references to CreateServiceProvider
Microsoft.AspNetCore.Http.Extensions.Tests (36)
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
424
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
164
var builder = new DefaultEndpointRouteBuilder(new ApplicationBuilder(serviceProvider ??
CreateServiceProvider
()));
200
httpContext.RequestServices = serviceProvider ??
CreateServiceProvider
();
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (4)
319
var endpoint = GetEndpointFromCompilation(compilation, serviceProvider:
CreateServiceProvider
());
921
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
958
var serviceProvider =
CreateServiceProvider
();
992
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (4)
48
var serviceProvider =
CreateServiceProvider
(hasService ?
78
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddSingleton(new TestService()));
119
var serviceProvider =
CreateServiceProvider
();
191
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (7)
21
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton("service1", myOriginalService));
37
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton("service1", myOriginalService));
63
var serviceProvider =
CreateServiceProvider
((serviceCollection) =>
87
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton('a', myOriginalService));
107
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton(key, myOriginalService));
160
var serviceProvider =
CreateServiceProvider
((serviceCollection) =>
188
var serviceProvider =
CreateServiceProvider
((serviceCollection) =>
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (15)
32
var serviceProvider =
CreateServiceProvider
();
94
var serviceProvider =
CreateServiceProvider
();
142
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
179
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
216
var serviceProvider =
CreateServiceProvider
();
260
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
296
var serviceProvider =
CreateServiceProvider
();
340
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
377
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
423
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
472
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
509
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
550
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
590
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
630
var serviceProvider =
CreateServiceProvider
(serviceCollection =>
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (2)
358
var serviceProvider =
CreateServiceProvider
((services) =>
378
var serviceProvider =
CreateServiceProvider
((services) =>
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (1)
45
var serviceProvider =
CreateServiceProvider
();