1 interface inheriting from IServiceCollection
Microsoft.Maui (1)
2 implementations of IServiceCollection
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.Http (1)
2939 references to IServiceCollection
ApiExplorerWebSite (1)
aspire (5)
Aspire.Azure.Messaging.EventHubs.Tests (1)
Aspire.Cli.Tests (316)
Certificates\CertificateServiceTests.cs (5)
19var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
53var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
109var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
144var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
193var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\AddCommandTests.cs (15)
22var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
36var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
103var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
180var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
265var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
350var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
414var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
456var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
550var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
598var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
646var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
699var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
783var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
860var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
944var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\ConfigCommandTests.cs (21)
19var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper,
47var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
61var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
84var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
109var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
137var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
167var services1 = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
178var services2 = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
193var services1 = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
203var services2 = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
218var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
232var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
257var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
286var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
314var services = CliTestHelper.CreateServiceCollection(
336var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => options.DisabledFeatures = new[] { "testFeature" });
354var services = CliTestHelper.CreateServiceCollection(
378var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
392var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
403var newServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
415var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\DeployCommandTests.cs (8)
24var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper);
40var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
72var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
106var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
140var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
208var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
281var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
349var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
Commands\DoCommandTests.cs (6)
20var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper);
36var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
94var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
147var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
200var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
258var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options =>
Commands\DocsCommandTests.cs (9)
17var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
35var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
52var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
69var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
87var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
105var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
123var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
140var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
157var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\ExecCommandTests.cs (7)
27var services = CliTestHelper.CreateServiceCollection(workspace, _outputHelper);
44var services = CliTestHelper.CreateServiceCollection(workspace, _outputHelper, options =>
62var services = CliTestHelper.CreateServiceCollection(workspace, _outputHelper, options =>
80var services = CliTestHelper.CreateServiceCollection(workspace, _outputHelper, options =>
98var services = CliTestHelper.CreateServiceCollection(workspace, _outputHelper, options =>
121var services = CliTestHelper.CreateServiceCollection(workspace, _outputHelper, options =>
145var services = CliTestHelper.CreateServiceCollection(workspace, _outputHelper, options =>
Commands\ExtensionInternalCommandTests.cs (8)
21var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
33var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
47var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
65var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
108var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
148var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
166var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
183var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\InitCommandTests.cs (5)
74var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
129var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
206var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
376var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
431var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\LogsCommandTests.cs (10)
18var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
120var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
140var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
157var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
177var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
196var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
211var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
227var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
242var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
257var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\McpCommandTests.cs (13)
17var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
32var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
46var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
60var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
74var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
90var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
104var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
119var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
133var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
147var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
161var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
176var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
192var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\NewCommandTests.cs (15)
28var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
42var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
86var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => {
144var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => {
198var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
255var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
336var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
412var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => {
466var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => {
520var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => {
553var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
606var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => {
669var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
747var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
809var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\PublishCommandPromptingIntegrationTests.cs (13)
36var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
82var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
134var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
181var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
227var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
285var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
364var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
432var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
484var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
539var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
610var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
654var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
697var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\PublishCommandTests.cs (6)
20var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
35var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
64var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
95var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
126var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
169var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\RootCommandTests.cs (14)
19var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
33var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
55var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
84var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
106var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
128var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
150var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
180var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
202var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
234var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
259var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
281var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
306var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
330var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\RunCommandTests.cs (26)
28var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
42var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
59var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
76var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
119var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
231var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
286var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
356var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
449var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
519var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
588var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
657var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
716var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
775var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
834var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
861var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
911var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
957var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1007var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1052var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1098var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1144var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1204var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1253var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
1325var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
1387var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\SdkInstallerTests.cs (7)
31var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
56var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
81var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
116var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
154var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
179var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
202var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\UpdateCommandTests.cs (17)
26var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
41var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
160var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
171var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
215var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
288var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
361var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
408var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
460var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
496var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
563var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
630var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
690var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
768var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
813var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
889var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
914var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
DotNet\DotNetCliRunnerTests.cs (33)
35var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
75var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
104var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
143var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
172var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
201var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
239var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
280var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
323var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
358var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
398var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
440var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
489var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
535var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
587var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
647var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
720var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
761var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
791var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
837var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
882var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
927var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
978var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1027var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1075var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1111var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1145var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1191var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1232var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1290var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1328var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1366var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
1406var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
NuGet\NuGetPackageCacheTests.cs (5)
19var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
52var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
87var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
125var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
169var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
Projects\ProjectUpdaterTests.cs (22)
46var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
157var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
288var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
441var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
601var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
720var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
822var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
956var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1072var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1193var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1306var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1402var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1511var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1596var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1672var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1756var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1839var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
1919var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
2009var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
2088var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
2166var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
2294var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
Utils\CliUpdateNotificationServiceTests.cs (6)
25var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
83var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
138var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
192var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
239var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
264var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Aspire.Dashboard (1)
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (2)
Aspire.Hosting (18)
Aspire.Hosting.Testing (4)
Aspire.Hosting.Testing.Tests (6)
Aspire.Hosting.Tests (6)
Aspire.Playground.Tests (2)
aspire-server (1)
AzureAppServicesSample (1)
BasicWebSite (11)
Benchmarks (2)
Binding.UDS.IntegrationTests (7)
blazor-devserver (1)
Certificate.Optional.Sample (1)
Certificate.Sample (1)
ClaimsTransformation (1)
ConfigurationSchemaGenerator.Tests (1)
CookiePolicySample (1)
Cookies (1)
CookieSessionSample (1)
CorsMiddlewareWebSite (1)
CorsWebSite (1)
CustomAuthorizationFailureResponse (1)
CustomPolicyProvider (1)
DatabaseErrorPageSample (1)
DefaultBuilder.SampleApp (1)
DeveloperExceptionPageSample (1)
DynamicSchemes (1)
ErrorPageMiddlewareWebSite (1)
ExceptionHandlerSample (2)
FilesWebSite (1)
FormatterWebSite (4)
GenericHostWebSite (1)
HeaderPropagationSample (1)
HealthChecksSample (6)
HostedBlazorWebassemblyApp.Server (1)
HostFilteringSample (1)
HotAddSample (1)
http2cat (2)
Http2SampleApp (1)
Http3SampleApp (1)
HttpLogging.Sample (1)
HttpsPolicySample (1)
IdentitySample.Mvc (1)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IISExpress.FunctionalTests (2)
IISSample (1)
InMemory.FunctionalTests (2)
InProcessWebSite (1)
IntegrationTestsWebsite (1)
Interop.FunctionalTests (1)
InteropWebsite (1)
IStartupInjectionAssemblyName (1)
JwtBearerSample (1)
JwtSample (1)
LocalizationSample (1)
LocalizationWebsite (7)
Logging.W3C.Sample (1)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore (17)
Microsoft.AspNetCore.Antiforgery (11)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.AsyncState (3)
Microsoft.AspNetCore.AsyncState.Tests (1)
Microsoft.AspNetCore.Authentication (9)
Microsoft.AspNetCore.Authentication.Abstractions (1)
Microsoft.AspNetCore.Authentication.Core (7)
Microsoft.AspNetCore.Authentication.Core.Test (2)
Microsoft.AspNetCore.Authentication.Test (41)
Microsoft.AspNetCore.Authorization (13)
Microsoft.AspNetCore.Authorization.Policy (20)
Microsoft.AspNetCore.Authorization.Test (9)
Microsoft.AspNetCore.AzureAppServicesIntegration.Tests (1)
Microsoft.AspNetCore.Components (43)
CascadingValueServiceCollectionExtensions.cs (22)
10/// Extension methods for configuring cascading values on an <see cref="IServiceCollection"/>.
19/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
21/// <returns>The <see cref="IServiceCollection"/>.</returns>
22public static IServiceCollection AddCascadingValue<TValue>(
23this IServiceCollection serviceCollection, Func<IServiceProvider, TValue> initialValueFactory)
31/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
34/// <returns>The <see cref="IServiceCollection"/>.</returns>
35public static IServiceCollection AddCascadingValue<TValue>(
36this IServiceCollection serviceCollection, string name, Func<IServiceProvider, TValue> initialValueFactory)
48/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
50/// <returns>The <see cref="IServiceCollection"/>.</returns>
51public static IServiceCollection AddCascadingValue<TValue>(
52this IServiceCollection serviceCollection, Func<IServiceProvider, CascadingValueSource<TValue>> sourceFactory)
61/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
63/// <returns>The <see cref="IServiceCollection"/>.</returns>
65this IServiceCollection serviceCollection, Func<IServiceProvider, TValue> valueFactory)
78/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
81/// <returns>The <see cref="IServiceCollection"/>.</returns>
83this IServiceCollection serviceCollection, string name, Func<IServiceProvider, TValue> valueFactory)
100/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
102/// <returns>The <see cref="IServiceCollection"/>.</returns>
104this IServiceCollection serviceCollection, Func<IServiceProvider, CascadingValueSource<TValue>> sourceFactory)
Microsoft.AspNetCore.Components.Authorization (4)
Microsoft.AspNetCore.Components.Endpoints (10)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Microsoft.AspNetCore.Components.Server (12)
Microsoft.AspNetCore.Components.Tests (4)
Microsoft.AspNetCore.Components.Web (6)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
Microsoft.AspNetCore.Components.WebView (4)
Microsoft.AspNetCore.Components.WebView.Maui (12)
Microsoft.AspNetCore.Components.WebView.Test (3)
Microsoft.AspNetCore.Components.WebView.WindowsForms (13)
Microsoft.AspNetCore.Components.WebView.Wpf (13)
Microsoft.AspNetCore.CookiePolicy (6)
Microsoft.AspNetCore.Cors (11)
Microsoft.AspNetCore.DataProtection (13)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (10)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
Microsoft.AspNetCore.Diagnostics.Middleware (44)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Microsoft.AspNetCore.Grpc.Swagger (5)
Microsoft.AspNetCore.HeaderParsing (9)
Microsoft.AspNetCore.HeaderParsing.Tests (3)
Microsoft.AspNetCore.HeaderPropagation (10)
Microsoft.AspNetCore.HostFiltering (3)
Microsoft.AspNetCore.Hosting (63)
Microsoft.AspNetCore.Hosting.Abstractions (9)
Microsoft.AspNetCore.Hosting.Tests (82)
StartupManagerTests.cs (28)
20serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
42serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
64serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
165public void ConfigureServices(IServiceCollection services)
218public IServiceProvider ConfigureServices(IServiceCollection services)
244public Action<IServiceCollection> ConfigureServices(Action<IServiceCollection> next)
267public void ConfigureServices(IServiceCollection services)
293serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
311serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>>(new DefaultServiceProviderFactory(new ServiceProviderOptions
344.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>()
363serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
391.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>()
410serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
424serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
439serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
453serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
470serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
488serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
506serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
521serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
535serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>();
642public void ConfigureServices(IServiceCollection services)
652public void ConfigureContainer(IServiceCollection services)
665public void ConfigureServices(IServiceCollection services)
688public void ConfigureServices(IServiceCollection services)
732public void ConfigureServices(IServiceCollection services)
737public void ConfigureNoServices(IServiceCollection services)
Microsoft.AspNetCore.Http (9)
Microsoft.AspNetCore.Http.Connections (11)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Extensions (13)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Results.Tests (30)
Microsoft.AspNetCore.HttpLogging (13)
Microsoft.AspNetCore.HttpOverrides (5)
Microsoft.AspNetCore.HttpOverrides.Tests (2)
Microsoft.AspNetCore.HttpsPolicy (6)
Microsoft.AspNetCore.Identity (11)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (17)
Microsoft.AspNetCore.Identity.FunctionalTests (54)
Microsoft.AspNetCore.Identity.InMemory.Test (6)
Microsoft.AspNetCore.Identity.Specification.Tests (9)
Microsoft.AspNetCore.Identity.Test (25)
Microsoft.AspNetCore.Identity.UI (5)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Localization (8)
Microsoft.AspNetCore.MiddlewareAnalysis (6)
Microsoft.AspNetCore.Mvc (44)
MvcServiceCollectionExtensions.cs (44)
21/// Extension methods for setting up MVC services in an <see cref="IServiceCollection" />.
26/// Adds MVC services to the specified <see cref="IServiceCollection" />.
28/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
31public static IMvcBuilder AddMvc(this IServiceCollection services)
40/// Adds MVC services to the specified <see cref="IServiceCollection" />.
42/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
46public static IMvcBuilder AddMvc(this IServiceCollection services, Action<MvcOptions> setupAction)
58/// Adds services for controllers to the specified <see cref="IServiceCollection"/>. This method will not
61/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
66/// combines the effects of <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>,
74/// To add services for controllers with views call <see cref="AddControllersWithViews(IServiceCollection)"/>
78/// To add services for pages call <see cref="AddRazorPages(IServiceCollection)"/>
83public static IMvcBuilder AddControllers(this IServiceCollection services)
92/// Adds services for controllers to the specified <see cref="IServiceCollection"/>. This method will not
95/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
101/// combines the effects of <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>,
109/// To add services for controllers with views call <see cref="AddControllersWithViews(IServiceCollection)"/>
113/// To add services for pages call <see cref="AddRazorPages(IServiceCollection)"/>
118public static IMvcBuilder AddControllers(this IServiceCollection services, Action<MvcOptions>? configure)
132private static IMvcCoreBuilder AddControllersCore(IServiceCollection services)
153/// Adds services for controllers to the specified <see cref="IServiceCollection"/>. This method will not
156/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
161/// combines the effects of <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>,
172/// To add services for pages call <see cref="AddRazorPages(IServiceCollection)"/>.
176public static IMvcBuilder AddControllersWithViews(this IServiceCollection services)
185/// Adds services for controllers to the specified <see cref="IServiceCollection"/>. This method will not
188/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
194/// combines the effects of <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>,
205/// To add services for pages call <see cref="AddRazorPages(IServiceCollection)"/>.
209public static IMvcBuilder AddControllersWithViews(this IServiceCollection services, Action<MvcOptions>? configure)
223private static IMvcCoreBuilder AddControllersWithViewsCore(IServiceCollection services)
236/// Adds services for pages to the specified <see cref="IServiceCollection"/>.
238/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
243/// combines the effects of <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>,
250/// To add services for controllers for APIs call <see cref="AddControllers(IServiceCollection)"/>.
253/// To add services for controllers with views call <see cref="AddControllersWithViews(IServiceCollection)"/>.
257public static IMvcBuilder AddRazorPages(this IServiceCollection services)
266/// Adds services for pages to the specified <see cref="IServiceCollection"/>.
268/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
274/// combines the effects of <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>,
281/// To add services for controllers for APIs call <see cref="AddControllers(IServiceCollection)"/>.
284/// To add services for controllers with views call <see cref="AddControllersWithViews(IServiceCollection)"/>.
288public static IMvcBuilder AddRazorPages(this IServiceCollection services, Action<RazorPagesOptions>? configure)
301private static IMvcCoreBuilder AddRazorPagesCore(IServiceCollection services)
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
Microsoft.AspNetCore.Mvc.Core (35)
Microsoft.AspNetCore.Mvc.Core.Test (39)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
Microsoft.AspNetCore.Mvc.Localization (2)
Microsoft.AspNetCore.Mvc.Localization.Test (9)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.Test (10)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Microsoft.AspNetCore.OpenApi (19)
Microsoft.AspNetCore.OpenApi.Tests (35)
Microsoft.AspNetCore.OutputCaching (6)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (6)
Microsoft.AspNetCore.RateLimiting (7)
Microsoft.AspNetCore.RequestDecompression (8)
Microsoft.AspNetCore.RequestDecompression.Tests (1)
Microsoft.AspNetCore.ResponseCaching (6)
Microsoft.AspNetCore.ResponseCompression (8)
Microsoft.AspNetCore.Routing (20)
Microsoft.AspNetCore.Routing.Tests (27)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Session (8)
Microsoft.AspNetCore.SignalR (7)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Core (7)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SpaProxy (1)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.StaticFiles (4)
Microsoft.AspNetCore.StaticFiles.Tests (2)
Microsoft.AspNetCore.TestHost (6)
Microsoft.AspNetCore.TestHost.Tests (6)
Microsoft.AspNetCore.Testing (1)
Microsoft.AspNetCore.Testing.Tests (1)
Microsoft.AspNetCore.Tests (8)
Microsoft.AspNetCore.WebSockets (4)
Microsoft.Authentication.WebAssembly.Msal (11)
Microsoft.CommonLanguageServerProtocol.Framework.Example (6)
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (2)
Microsoft.DotNet.Build.Tasks.Feed (3)
Microsoft.DotNet.Build.Tasks.Feed.Tests (12)
Microsoft.DotNet.Helix.Sdk (5)
Microsoft.DotNet.Helix.Sdk.Tests (23)
Microsoft.Extensions.AI (52)
Microsoft.Extensions.AI.Tests (3)
Microsoft.Extensions.AmbientMetadata.Application (4)
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
Microsoft.Extensions.AmbientMetadata.Build (10)
Microsoft.Extensions.AmbientMetadata.Build.Tests (2)
Microsoft.Extensions.AsyncState (2)
Microsoft.Extensions.Caching.Hybrid (18)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.Caching.Memory (23)
Microsoft.Extensions.Caching.SqlServer (7)
Microsoft.Extensions.Caching.StackExchangeRedis (6)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Microsoft.Extensions.Compliance.Redaction (10)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
Microsoft.Extensions.Compliance.Testing (4)
Microsoft.Extensions.Compliance.Testing.Tests (3)
Microsoft.Extensions.DependencyInjection (15)
Microsoft.Extensions.DependencyInjection.Abstractions (322)
Extensions\ServiceCollectionDescriptorExtensions.cs (76)
11/// Extension methods for adding and removing services to an <see cref="IServiceCollection" />.
18/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
20/// <returns>A reference to the current instance of <see cref="IServiceCollection"/>.</returns>
21public static IServiceCollection Add(
22this IServiceCollection collection,
35/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
37/// <returns>A reference to the current instance of <see cref="IServiceCollection"/>.</returns>
38public static IServiceCollection Add(
39this IServiceCollection collection,
57/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
60this IServiceCollection collection,
84/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
87this IServiceCollection collection,
103/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
106this IServiceCollection collection,
121/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
125this IServiceCollection collection,
142/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
146this IServiceCollection collection,
163/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
164public static void TryAddTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection)
179/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
180public static void TryAddTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection)
195/// <param name="services">The <see cref="IServiceCollection"/>.</param>
198this IServiceCollection services,
209/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
212this IServiceCollection collection,
227/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
231this IServiceCollection collection,
248/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
252this IServiceCollection collection,
269/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
270public static void TryAddScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection)
285/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
286public static void TryAddScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection)
301/// <param name="services">The <see cref="IServiceCollection"/>.</param>
304this IServiceCollection services,
315/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
318this IServiceCollection collection,
333/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
337this IServiceCollection collection,
354/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
358this IServiceCollection collection,
375/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
376public static void TryAddSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection)
391/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
392public static void TryAddSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection)
407/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
409public static void TryAddSingleton<TService>(this IServiceCollection collection, TService instance)
425/// <param name="services">The <see cref="IServiceCollection"/>.</param>
428this IServiceCollection services,
440/// <param name="services">The <see cref="IServiceCollection"/>.</param>
443/// Use <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> when registering a service implementation of a
446/// <see cref="Add(IServiceCollection, ServiceDescriptor)"/> is not idempotent and can add
449/// <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> will prevent registration
453this IServiceCollection services,
492/// <param name="services">The <see cref="IServiceCollection"/>.</param>
495/// Use <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> when registering a service
498/// <see cref="Add(IServiceCollection, ServiceDescriptor)"/> is not idempotent and can add
501/// <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> will prevent registration
505this IServiceCollection services,
518/// Removes the first service in <see cref="IServiceCollection"/> with the same service type
521/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
523/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns>
524public static IServiceCollection Replace(
525this IServiceCollection collection,
547/// Removes all services of type <typeparamref name="T"/> in <see cref="IServiceCollection"/>.
549/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
550/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns>
551public static IServiceCollection RemoveAll<T>(this IServiceCollection collection)
557/// Removes all services of type <paramref name="serviceType"/> in <see cref="IServiceCollection"/>.
559/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
561/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns>
562public static IServiceCollection RemoveAll(this IServiceCollection collection, Type serviceType)
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (48)
16/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
20this IServiceCollection collection,
36/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
41this IServiceCollection collection,
59/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
64this IServiceCollection collection,
82/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
84public static void TryAddKeyedTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection, object? serviceKey)
99/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
101public static void TryAddKeyedTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection, object? serviceKey)
116/// <param name="services">The <see cref="IServiceCollection"/>.</param>
120this IServiceCollection services,
132/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
136this IServiceCollection collection,
152/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
157this IServiceCollection collection,
175/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
180this IServiceCollection collection,
198/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
200public static void TryAddKeyedScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection, object? serviceKey)
215/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
217public static void TryAddKeyedScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection, object? serviceKey)
232/// <param name="services">The <see cref="IServiceCollection"/>.</param>
236this IServiceCollection services,
248/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
252this IServiceCollection collection,
268/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
273this IServiceCollection collection,
291/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
296this IServiceCollection collection,
314/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
316public static void TryAddKeyedSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection, object? serviceKey)
331/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
333public static void TryAddKeyedSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection, object? serviceKey)
348/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
351public static void TryAddKeyedSingleton<TService>(this IServiceCollection collection, object? serviceKey, TService instance)
367/// <param name="services">The <see cref="IServiceCollection"/>.</param>
371this IServiceCollection services,
380/// Removes all services of type <typeparamref name="T"/> in <see cref="IServiceCollection"/>.
382/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
384/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns>
385public static IServiceCollection RemoveAllKeyed<T>(this IServiceCollection collection, object? serviceKey)
391/// Removes all services of type <paramref name="serviceType"/> in <see cref="IServiceCollection"/>.
393/// <param name="collection">The <see cref="IServiceCollection"/>.</param>
396/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns>
397public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, Type serviceType, object? serviceKey)
ServiceCollectionServiceExtensions.cs (97)
10/// Extension methods for adding services to an <see cref="IServiceCollection" />.
17/// specified <see cref="IServiceCollection"/>.
19/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
24public static IServiceCollection AddTransient(
25this IServiceCollection services,
39/// specified <see cref="IServiceCollection"/>.
41/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
46public static IServiceCollection AddTransient(
47this IServiceCollection services,
61/// specified <see cref="IServiceCollection"/>.
65/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
68public static IServiceCollection AddTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services)
79/// specified <see cref="IServiceCollection"/>.
81/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
85public static IServiceCollection AddTransient(
86this IServiceCollection services,
97/// specified <see cref="IServiceCollection"/>.
100/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
103public static IServiceCollection AddTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services)
114/// specified <see cref="IServiceCollection"/>.
117/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
121public static IServiceCollection AddTransient<TService>(
122this IServiceCollection services,
136/// specified <see cref="IServiceCollection"/>.
140/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
144public static IServiceCollection AddTransient<TService, TImplementation>(
145this IServiceCollection services,
159/// specified <see cref="IServiceCollection"/>.
161/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
166public static IServiceCollection AddScoped(
167this IServiceCollection services,
181/// specified <see cref="IServiceCollection"/>.
183/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
188public static IServiceCollection AddScoped(
189this IServiceCollection services,
203/// specified <see cref="IServiceCollection"/>.
207/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
210public static IServiceCollection AddScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services)
221/// specified <see cref="IServiceCollection"/>.
223/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
227public static IServiceCollection AddScoped(
228this IServiceCollection services,
239/// specified <see cref="IServiceCollection"/>.
242/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
245public static IServiceCollection AddScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services)
256/// specified <see cref="IServiceCollection"/>.
259/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
263public static IServiceCollection AddScoped<TService>(
264this IServiceCollection services,
278/// specified <see cref="IServiceCollection"/>.
282/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
286public static IServiceCollection AddScoped<TService, TImplementation>(
287this IServiceCollection services,
302/// specified <see cref="IServiceCollection"/>.
304/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
309public static IServiceCollection AddSingleton(
310this IServiceCollection services,
324/// specified <see cref="IServiceCollection"/>.
326/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
331public static IServiceCollection AddSingleton(
332this IServiceCollection services,
346/// specified <see cref="IServiceCollection"/>.
350/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
353public static IServiceCollection AddSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services)
364/// specified <see cref="IServiceCollection"/>.
366/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
370public static IServiceCollection AddSingleton(
371this IServiceCollection services,
382/// specified <see cref="IServiceCollection"/>.
385/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
388public static IServiceCollection AddSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services)
399/// specified <see cref="IServiceCollection"/>.
402/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
406public static IServiceCollection AddSingleton<TService>(
407this IServiceCollection services,
421/// specified <see cref="IServiceCollection"/>.
425/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
429public static IServiceCollection AddSingleton<TService, TImplementation>(
430this IServiceCollection services,
444/// specified <see cref="IServiceCollection"/>.
446/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
451public static IServiceCollection AddSingleton(
452this IServiceCollection services,
468/// specified <see cref="IServiceCollection"/>.
470/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
474public static IServiceCollection AddSingleton<TService>(
475this IServiceCollection services,
485private static IServiceCollection Add(
486IServiceCollection collection,
496private static IServiceCollection Add(
497IServiceCollection collection,
ServiceCollectionServiceExtensions.Keyed.cs (97)
10/// Extension methods for adding services to an <see cref="IServiceCollection" />.
17/// specified <see cref="IServiceCollection"/>.
19/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
25public static IServiceCollection AddKeyedTransient(
26this IServiceCollection services,
41/// specified <see cref="IServiceCollection"/>.
43/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
49public static IServiceCollection AddKeyedTransient(
50this IServiceCollection services,
65/// specified <see cref="IServiceCollection"/>.
69/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
73public static IServiceCollection AddKeyedTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(
74this IServiceCollection services,
86/// specified <see cref="IServiceCollection"/>.
88/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
93public static IServiceCollection AddKeyedTransient(
94this IServiceCollection services,
106/// specified <see cref="IServiceCollection"/>.
109/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
113public static IServiceCollection AddKeyedTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(
114this IServiceCollection services,
126/// specified <see cref="IServiceCollection"/>.
129/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
134public static IServiceCollection AddKeyedTransient<TService>(
135this IServiceCollection services,
150/// specified <see cref="IServiceCollection"/>.
154/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
159public static IServiceCollection AddKeyedTransient<TService, TImplementation>(
160this IServiceCollection services,
175/// specified <see cref="IServiceCollection"/>.
177/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
183public static IServiceCollection AddKeyedScoped(
184this IServiceCollection services,
199/// specified <see cref="IServiceCollection"/>.
201/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
207public static IServiceCollection AddKeyedScoped(
208this IServiceCollection services,
223/// specified <see cref="IServiceCollection"/>.
227/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
231public static IServiceCollection AddKeyedScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(
232this IServiceCollection services,
244/// specified <see cref="IServiceCollection"/>.
246/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
251public static IServiceCollection AddKeyedScoped(
252this IServiceCollection services,
264/// specified <see cref="IServiceCollection"/>.
267/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
271public static IServiceCollection AddKeyedScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(
272this IServiceCollection services,
284/// specified <see cref="IServiceCollection"/>.
287/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
292public static IServiceCollection AddKeyedScoped<TService>(
293this IServiceCollection services,
308/// specified <see cref="IServiceCollection"/>.
312/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
317public static IServiceCollection AddKeyedScoped<TService, TImplementation>(
318this IServiceCollection services,
333/// specified <see cref="IServiceCollection"/>.
335/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
341public static IServiceCollection AddKeyedSingleton(
342this IServiceCollection services,
357/// specified <see cref="IServiceCollection"/>.
359/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
365public static IServiceCollection AddKeyedSingleton(
366this IServiceCollection services,
381/// specified <see cref="IServiceCollection"/>.
385/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
389public static IServiceCollection AddKeyedSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(
390this IServiceCollection services,
402/// specified <see cref="IServiceCollection"/>.
404/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
409public static IServiceCollection AddKeyedSingleton(
410this IServiceCollection services,
422/// specified <see cref="IServiceCollection"/>.
425/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
429public static IServiceCollection AddKeyedSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(
430this IServiceCollection services,
442/// specified <see cref="IServiceCollection"/>.
445/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
450public static IServiceCollection AddKeyedSingleton<TService>(
451this IServiceCollection services,
466/// specified <see cref="IServiceCollection"/>.
470/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
475public static IServiceCollection AddKeyedSingleton<TService, TImplementation>(
476this IServiceCollection services,
491/// specified <see cref="IServiceCollection"/>.
493/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
499public static IServiceCollection AddKeyedSingleton(
500this IServiceCollection services,
517/// specified <see cref="IServiceCollection"/>.
519/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param>
524public static IServiceCollection AddKeyedSingleton<TService>(
525this IServiceCollection services,
536private static IServiceCollection AddKeyed(
537IServiceCollection collection,
548private static IServiceCollection AddKeyed(
549IServiceCollection collection,
Microsoft.Extensions.Diagnostics (13)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (7)
Microsoft.Extensions.Diagnostics.HealthChecks (10)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (6)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (9)
Microsoft.Extensions.Diagnostics.Probes (24)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (9)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.Diagnostics.Testing (6)
Microsoft.Extensions.Hosting (21)
Microsoft.Extensions.Hosting.Abstractions (13)
Microsoft.Extensions.Hosting.Systemd (6)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Hosting.WindowsServices (11)
Microsoft.Extensions.Http (89)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (67)
17/// Extension methods to configure an <see cref="IServiceCollection"/> for <see cref="IHttpClientFactory"/>.
22/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/>.
24/// <param name="services">The <see cref="IServiceCollection"/>.</param>
25/// <returns>The <see cref="IServiceCollection"/>.</returns>
26public static IServiceCollection AddHttpClient(this IServiceCollection services)
77/// <param name="services">The <see cref="IServiceCollection"/>.</param>
79/// <returns>The <see cref="IServiceCollection"/>.</returns>
80public static IServiceCollection ConfigureHttpClientDefaults(this IServiceCollection services, Action<IHttpClientBuilder> configure)
93/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
96/// <param name="services">The <see cref="IServiceCollection"/>.</param>
108public static IHttpClientBuilder AddHttpClient(this IServiceCollection services, string name)
119/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
122/// <param name="services">The <see cref="IServiceCollection"/>.</param>
135public static IHttpClientBuilder AddHttpClient(this IServiceCollection services, string name, Action<HttpClient> configureClient)
149/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
152/// <param name="services">The <see cref="IServiceCollection"/>.</param>
165public static IHttpClientBuilder AddHttpClient(this IServiceCollection services, string name, Action<IServiceProvider, HttpClient> configureClient)
179/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
187/// <param name="services">The <see cref="IServiceCollection"/>.</param>
201this IServiceCollection services)
215/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
227/// <param name="services">The <see cref="IServiceCollection"/>.</param>
241this IServiceCollection services)
256/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
263/// <param name="services">The <see cref="IServiceCollection"/>.</param>
281this IServiceCollection services, string name)
295/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
306/// <param name="services">The <see cref="IServiceCollection"/>.</param>
324this IServiceCollection services, string name)
339/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
347/// <param name="services">The <see cref="IServiceCollection"/>.</param>
362this IServiceCollection services, Action<HttpClient> configureClient)
378/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
386/// <param name="services">The <see cref="IServiceCollection"/>.</param>
401this IServiceCollection services, Action<IServiceProvider, HttpClient> configureClient)
417/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
429/// <param name="services">The <see cref="IServiceCollection"/>.</param>
444this IServiceCollection services, Action<HttpClient> configureClient)
461/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
473/// <param name="services">The <see cref="IServiceCollection"/>.</param>
488this IServiceCollection services, Action<IServiceProvider, HttpClient> configureClient)
505/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
512/// <param name="services">The <see cref="IServiceCollection"/>.</param>
531this IServiceCollection services, string name, Action<HttpClient> configureClient)
547/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
554/// <param name="services">The <see cref="IServiceCollection"/>.</param>
573this IServiceCollection services, string name, Action<IServiceProvider, HttpClient> configureClient)
589/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
600/// <param name="services">The <see cref="IServiceCollection"/>.</param>
619this IServiceCollection services, string name, Action<HttpClient> configureClient)
636/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
647/// <param name="services">The <see cref="IServiceCollection"/>.</param>
666this IServiceCollection services, string name, Action<IServiceProvider, HttpClient> configureClient)
683/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
693/// <param name="services">The <see cref="IServiceCollection"/>.</param>
707public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, Func<HttpClient, TImplementation> factory)
719/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
729/// <param name="services">The <see cref="IServiceCollection"/>.</param>
746public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, string name, Func<HttpClient, TImplementation> factory)
762/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
772/// <param name="services">The <see cref="IServiceCollection"/>.</param>
786public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, Func<HttpClient, IServiceProvider, TImplementation> factory)
798/// Adds the <see cref="IHttpClientFactory"/> and related services to the <see cref="IServiceCollection"/> and configures
808/// <param name="services">The <see cref="IServiceCollection"/>.</param>
823public static IHttpClientBuilder AddHttpClient<TClient, TImplementation>(this IServiceCollection services, string name, Func<HttpClient, IServiceProvider, TImplementation> factory)
Microsoft.Extensions.Http.Diagnostics (38)
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Microsoft.Extensions.Http.Polly (8)
Microsoft.Extensions.Http.Resilience (12)
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
Microsoft.Extensions.Http.Resilience.Tests (4)
Microsoft.Extensions.Identity.Core (10)
Microsoft.Extensions.Localization (11)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Logging (14)
Microsoft.Extensions.Logging.Abstractions (2)
Microsoft.Extensions.Logging.AzureAppServices (2)
Microsoft.Extensions.Logging.Configuration (2)
Microsoft.Extensions.ML (13)
Microsoft.Extensions.ML.Tests (7)
Microsoft.Extensions.ObjectPool.DependencyInjection (14)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (13)
Microsoft.Extensions.Options (57)
OptionsServiceCollectionExtensions.cs (53)
20/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
21/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
22public static IServiceCollection AddOptions(this IServiceCollection services)
41/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
46this IServiceCollection services,
61/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
67this IServiceCollection services,
77/// Note: These are run before all <see cref="PostConfigure{TOptions}(IServiceCollection, Action{TOptions})"/>.
80/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
82/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
83public static IServiceCollection Configure<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
88/// Note: These are run before all <see cref="PostConfigure{TOptions}(IServiceCollection, Action{TOptions})"/>.
91/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
94/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
95public static IServiceCollection Configure<TOptions>(this IServiceCollection services, string? name, Action<TOptions> configureOptions)
110/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
112/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
113public static IServiceCollection ConfigureAll<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
118/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>.
121/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
123/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
124public static IServiceCollection PostConfigure<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
129/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>.
132/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
135/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
136public static IServiceCollection PostConfigure<TOptions>(this IServiceCollection services, string? name, Action<TOptions> configureOptions)
149/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>.
152/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
154/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
155public static IServiceCollection PostConfigureAll<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class
164/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
165/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
166public static IServiceCollection ConfigureOptions<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConfigureOptions>(
167this IServiceCollection services)
209/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
211/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
212public static IServiceCollection ConfigureOptions(
213this IServiceCollection services,
238/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
240/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
241public static IServiceCollection ConfigureOptions(this IServiceCollection services, object configureInstance)
265/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
267public static OptionsBuilder<TOptions> AddOptions<TOptions>(this IServiceCollection services) where TOptions : class
274/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
277public static OptionsBuilder<TOptions> AddOptions<TOptions>(this IServiceCollection services, string? name)
Microsoft.Extensions.Options.ConfigurationExtensions (16)
Microsoft.Extensions.Options.Contextual (21)
ContextualOptionsServiceCollectionExtensions.cs (21)
23/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
25public static IServiceCollection AddContextualOptions(this IServiceCollection services)
40/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
43public static IServiceCollection Configure<TOptions>(
44this IServiceCollection services,
53/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
57public static IServiceCollection Configure<TOptions>(
58this IServiceCollection services,
73/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
77public static IServiceCollection Configure<TOptions>(this IServiceCollection services, Action<IOptionsContext, TOptions> configure)
86/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
91public static IServiceCollection Configure<TOptions>(this IServiceCollection services, string? name, Action<IOptionsContext, TOptions> configure)
107/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
110public static IServiceCollection ConfigureAll<TOptions>(
111this IServiceCollection services,
120/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param>
123public static IServiceCollection ConfigureAll<TOptions>(this IServiceCollection services, Action<IOptionsContext, TOptions> configure)
Microsoft.Extensions.Options.Contextual.Tests (1)
Microsoft.Extensions.Resilience (2)
Microsoft.Extensions.Resilience.PerformanceTests (1)
Microsoft.Extensions.Resilience.Tests (2)
Microsoft.Extensions.ServiceDiscovery (15)
Microsoft.Extensions.ServiceDiscovery.Dns (20)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (10)
Microsoft.Extensions.ServiceDiscovery.Tests (7)
Microsoft.Extensions.ServiceDiscovery.Yarp (5)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
Microsoft.Extensions.Telemetry (57)
Microsoft.Extensions.Telemetry.Abstractions (17)
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Microsoft.Extensions.Telemetry.Tests (9)
Microsoft.Extensions.Validation (5)
Microsoft.Extensions.WebEncoders (9)
Microsoft.Maui (10)
Microsoft.ML.AutoML (2)
MiddlewareAnalysisSample (1)
MinimalValidationSample (2)
MvcSandbox (1)
Negotiate.Client (1)
Negotiate.Server (1)
NegotiateAuthSample (1)
OpenIdConnectSample (1)
PathSchemeSelection (1)
RazorBuildWebSite (3)
RazorPagesClassLibrary (1)
RequestDecompressionSample (1)
ResponseCachingSample (1)
ResponseCompressionSample (1)
RewriteSample (1)
RoutingSandbox (2)
RoutingWebSite (3)
Sample (4)
SampleStartups (3)
Sandbox (1)
SecurityWebSite (7)
SelfHostServer (1)
ServerComparison.TestSites (2)
SessionSample (1)
Shared (6)
Shared.Tests (3)
SignalR.Client.FunctionalTestApp (1)
SignalRSamples (1)
SimpleWebSite (1)
SocialSample (1)
SocialWeather (1)
Sockets.BindTests (3)
Sockets.FunctionalTests (3)
StaticFileSample (1)
StaticFilesAuth (1)
StatusCodePagesSample (1)
VersioningWebSite (1)
Wasm.Performance.ConsoleHost (1)
Wasm.Performance.Driver (1)
WsFedSample (1)
XmlFormattersWebSite (1)