38 references to CreateServiceProvider
Microsoft.AspNetCore.Http.Extensions.Tests (38)
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.cs (1)
613
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddSingleton<global::Http.ExampleService>());
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 (8)
22
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton("service1", myOriginalService));
38
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton("service1", myOriginalService));
64
var serviceProvider =
CreateServiceProvider
((serviceCollection) =>
88
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton('a', myOriginalService));
108
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton(key, myOriginalService));
161
var serviceProvider =
CreateServiceProvider
((serviceCollection) =>
189
var serviceProvider =
CreateServiceProvider
((serviceCollection) =>
239
var serviceProvider =
CreateServiceProvider
((serviceCollection) => serviceCollection.AddKeyedSingleton<global::Http.ExampleService>("example"));
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
();