6 implementations of ConfigureServices
Microsoft.AspNetCore (2)
BootstrapHostBuilder.cs (1)
55public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
ConfigureHostBuilder.cs (1)
95public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
77public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (1)
360public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
HostBuilder.cs (1)
93public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
72public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
31 references to ConfigureServices
Microsoft.AspNetCore.Hosting (9)
GenericHost\GenericWebHostBuilder.cs (5)
52_builder.ConfigureServices((context, services) => 175_builder.ConfigureServices((context, services) => 198_builder.ConfigureServices(ConfigureStartup); 321_builder.ConfigureServices((context, services) => 344_builder.ConfigureServices((context, services) =>
GenericHost\SlimWebHostBuilder.cs (2)
28_builder.ConfigureServices((context, services) => 83_builder.ConfigureServices((context, services) =>
GenericHost\WebHostBuilderBase.cs (1)
52_builder.ConfigureServices((context, builder) =>
GenericHostWebHostBuilderExtensions.cs (1)
79builder.ConfigureServices((context, services) => services.AddHostedService<GenericWebHostService>());
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
79_configure += b => b.ConfigureServices(configureDelegate);
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataHostBuilderExtensions.cs (1)
33.ConfigureServices((hostBuilderContext, serviceCollection) => serviceCollection.AddApplicationMetadata(hostBuilderContext.Configuration.GetSection(sectionName)));
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
AcceptanceTests.cs (1)
52.ConfigureServices((_, services) => services.AddApplicationMetadata(metadata =>
Microsoft.Extensions.Hosting (7)
HostingHostBuilderExtensions.cs (7)
100return hostBuilder.ConfigureServices((context, collection) => collection.AddLogging(builder => configureLogging(context, builder))); 111return hostBuilder.ConfigureServices((context, collection) => collection.AddLogging(configureLogging)); 122return hostBuilder.ConfigureServices( 159return hostBuilder.ConfigureServices((context, collection) => configureDelegate(collection)); 198.ConfigureServices(AddDefaultServices) 409return hostBuilder.ConfigureServices((context, collection) => collection.AddMetrics(configureMetrics)); 420return hostBuilder.ConfigureServices((context, collection) => collection.AddMetrics(builder => configureMetrics(context, builder)));
Microsoft.Extensions.Hosting.Abstractions (1)
IHost.cs (1)
16/// Gets the services configured for the program (for example, using <see cref="IHostBuilder.ConfigureServices(Action{HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceCollection})" />).
Microsoft.Extensions.Hosting.Systemd (2)
SystemdHostBuilderExtensions.cs (2)
39hostBuilder.ConfigureServices((hostContext, services) => 65/// <see cref="IHostBuilder.ConfigureServices(System.Action{HostBuilderContext, IServiceCollection})"/> callback.
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
74return _builder.ConfigureServices(configureDelegate);
Microsoft.Extensions.Hosting.Testing.Tests (4)
FakeHostBuilderTests.cs (4)
129.ConfigureServices((_, services) => 147.ConfigureServices((_, services) => 162.ConfigureServices((_, services) => 179.ConfigureServices((_, services) =>
Microsoft.Extensions.Hosting.WindowsServices (2)
WindowsServiceLifetimeHostBuilderExtensions.cs (2)
72/// <see cref="IHostBuilder.ConfigureServices(Action{HostBuilderContext, IServiceCollection})"/> callback. 91/// <see cref="IHostBuilder.ConfigureServices(Action{HostBuilderContext, IServiceCollection})"/> callback.
Microsoft.Extensions.Telemetry.Tests (2)
Enrichment\ApplicationEnricherExtensionsTests.cs (1)
80.ConfigureServices((context, services) => services
Enrichment\ProcessEnricherExtensionsTests.cs (1)
78.ConfigureServices((context, services) => services