1 interface inheriting from IServiceCollection
Microsoft.Maui (1)
Hosting\IMauiServiceCollection.cs (1)
7 public interface IMauiServiceCollection : IServiceCollection
2 implementations of IServiceCollection
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
16public class ServiceCollection : IServiceCollection
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
12internal sealed class DefaultHttpClientBuilderServiceCollection : IServiceCollection
3526 references to IServiceCollection
aspire (12)
Program.cs (1)
796internal static void AddDocumentationServices(IServiceCollection services)
src\Shared\Telemetry\AzureMonitorTelemetryProvider.cs (6)
40IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 45IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 51IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 58IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 85IServiceCollection services, ResourceBuilder resourceBuilder, string eventLogCategoryName, 90IServiceCollection services, ResourceBuilder resourceBuilder, string eventLogCategoryName,
Telemetry\TelemetryServiceCollectionExtensions.cs (5)
17/// Adds telemetry services to the specified <see cref="IServiceCollection"/>. 19/// <param name="services">The <see cref="IServiceCollection"/> to add services to.</param> 20/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 21public static IServiceCollection AddTelemetryServices(this IServiceCollection services)
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
60private static void ConfigureBlobServiceClient(bool useKeyed, IServiceCollection services)
Aspire.Cli.Tests (1256)
Agents\AgentConfigurationTestContext.cs (2)
64public IServiceCollection CreateServiceCollection( 67var services = CliTestHelper.CreateServiceCollection(Workspace, output, options =>
Certificates\CertificateServiceTests.cs (12)
195var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 229var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 276var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 310var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 349var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 390var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 431var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 481var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 520var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 563var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 599var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 626var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
CliBootstrapTests.cs (2)
443var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 464var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\AddCommandTests.cs (81)
70var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 147var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 194var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 240var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 311var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 401var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 470var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 533var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 713var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 828var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 859var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 873var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 893var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 924var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 959var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1049var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1075var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1106var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1162var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1256var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1327var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1414var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1510var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1596var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1640var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1725var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1782var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1819var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1866var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1949var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2026var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2110var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2191var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2297var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2345var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2433var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2500var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2572var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2649var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2718var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2790var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2867var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2959var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3039var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3060var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3095var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3191var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3239var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3287var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3345var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3529var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3619var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3653var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3715var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3962var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4038var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4111var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4170var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4223var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4282var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4334var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4381var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4429var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4476var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4525var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4584var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4638var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4685var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4796var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4900var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4951var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5000var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5068var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5130var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5182var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5233var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5322var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5405var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5493var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5581var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5661var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\AgentInitClientSelectionTests.cs (34)
29var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 81var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 137var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 164var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 243var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 267var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 299var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 340var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 372var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 422var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 510var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 566var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 604var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 645var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 695var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 742var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 769var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 812var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 876var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 913var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 936var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 992var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1030var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1061var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1086var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1126var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1154var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1181var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1233var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1266var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1313var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1347var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1369var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1430var services = CliTestHelper.CreateServiceCollection(context.Workspace, outputHelper, options =>
Commands\AgentInitCommandTests.cs (19)
286var services = context.CreateServiceCollection(outputHelper, options => 347var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 367var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 386var services = context.CreateServiceCollection(outputHelper, options => 415var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 432var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 456var services = context.CreateServiceCollection(outputHelper, options => 521var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 540var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 559var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 576var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 596var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 632var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 659var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 692var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 733var services = context.CreateServiceCollection(outputHelper, options => 792var services = context.CreateServiceCollection(outputHelper, options => 1015var services = context.CreateServiceCollection(outputHelper, options => 1045var services = context.CreateServiceCollection(outputHelper, options =>
Commands\AgentMcpCommandTests.cs (8)
44var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1591var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1609var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1665var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1698var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1731var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1760var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1795var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\AgentTelemetryCommandTests.cs (14)
26var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 62var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 97var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 134var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 161var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 193var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 223var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 256var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 282var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 309var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 331var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 347var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 362var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 376var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\ApiCommandTests.cs (5)
17var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 34var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 51var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 68var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 85var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\BaseCommandTests.cs (26)
39var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 59var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 85var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 111var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 136var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 155var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 213var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 239var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 270var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 313var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 358var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 390var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 424var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 483var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 534var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 562var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 615var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 654var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 691var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 717var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 746var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 791var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 817var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 838var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 860var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 877var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\CacheCommandTests.cs (7)
18var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 33var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 51var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 75var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 97var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 127var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 149var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\CertificatesCommandTests.cs (4)
23var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 38var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 53var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 90var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\ConfigCommandTests.cs (50)
89var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, 117var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 131var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 156var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 169var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 194var reloadedServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 206var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 222var reloadedServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 249var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 262var reloadedServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 285var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 310var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 338var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 368var services1 = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 379var services2 = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 394var services1 = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 404var services2 = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 419var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 435var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 442var readerServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper, 476var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, 492var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 517var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 546var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 575var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 601var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 627var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 649var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 670var services = CliTestHelper.CreateServiceCollection( 692var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => options.DisabledFeatures = new[] { "testFeature" }); 710var services = CliTestHelper.CreateServiceCollection( 734var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 748var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 759var newServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 771var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 783var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 815var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 834var reloadedServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 857var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 888var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 919var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 962var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 995var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1014var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1044var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1073var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1101var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1116var reloadedServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1141var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1159var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\ConfigSourceCommandTests.cs (12)
188var services = CreateCreationServices(workspace); 239var agentServices = CreateCreationServices(workspace); 261var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 620var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 703var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 740var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 783var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1025var services = CreateCreationServices(workspace); 1069var services = CreateCreationServices(workspace); 1133var services = CreateCreationServices(workspace); 1263private IServiceCollection CreateCreationServices(TemporaryWorkspace workspace) 1265var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\DashboardRunCommandTests.cs (6)
32var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 52var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 75var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 88var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 682private (IServiceCollection Services, string ExecutablePath, TestProcessExecutionFactory ExecutionFactory) CreateServicesWithLayout( 714var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\DeployCommandTests.cs (12)
26var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 43var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 105var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 159var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 191var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 225var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 259var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 328var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 407var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options => 460var services = CliTestHelper.CreateServiceCollection(tempRepo, outputHelper, options => 508var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 576var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\DescribeCommandTests.cs (15)
44var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 58var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 77var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 95var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 113var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 128var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 143var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 158var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 173var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 188var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 203var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 218var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1197var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1240var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1284var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\DestroyCommandTests.cs (9)
24var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 50var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 81var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 98var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 127var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 189var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 228var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 286var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 343var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\DoCommandTests.cs (23)
25var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 41var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 69var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 127var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 180var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 233var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 291var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 339var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 437var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 473var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 528var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 578var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 630var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 656var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 686var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 719var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 749var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 786var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 840var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 857var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 898var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 919var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 974var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\DocsCommandTests.cs (10)
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 => 190var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 239var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\DoctorCommandTests.cs (13)
26var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 93var services = CreateDoctorVersionServiceCollection(context.Workspace, outputHelper, options => 207var services = CreateDoctorVersionServiceCollection(workspace, outputHelper, options => 771var services = CreateDoctorVersionServiceCollection(workspace, outputHelper, options => 836var services = CreateDoctorVersionServiceCollection(workspace, outputHelper, options => 903var services = CreateDoctorVersionServiceCollection(workspace, outputHelper, options => 937var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1021var services = CreateDoctorVersionServiceCollection(workspace, outputHelper, options => 1086Action<IServiceCollection>? configureServices = null, 1090var services = CreateDoctorVersionServiceCollection(workspace, outputHelper, options => 1111private static IServiceCollection CreateDoctorVersionServiceCollection( 1116var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure); 1136IServiceCollection services,
Commands\ExportCommandTests.cs (3)
157var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 267var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 922var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\ExtensionInternalCommandTests.cs (9)
21var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 33var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 47var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 64var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 112var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 141var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 181var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 199var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 216var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\InitCommandTests.cs (57)
48var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 128var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 169var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 210var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 246var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 288var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 324var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 341var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 363var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 385var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 466var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 517var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 548var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 596var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 641var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 679var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 718var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 756var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 793var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 834var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 879var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 923var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 959var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1049var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1071var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1093var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1123var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1156var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1180var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1206var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1226var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1248var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1304var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1377var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1443var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1492var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1544var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1579var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1615var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1657var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1687var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1719var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1764var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1812var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1866var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1917var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1996var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2057var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2142var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2200var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2254var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2295var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2332var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2394var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2443var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2491var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2554var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\LogsCommandTests.cs (14)
23var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 125var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 145var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 162var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 182var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 201var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 216var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 232var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 247var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 262var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 775var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 884var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1025var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1606var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\LsCommandTests.cs (22)
29var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 44var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 62var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 77var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 104var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 144var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 184var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 225var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 258var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 298var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 341var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 385var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 433var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 477var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 500var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 531var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 569var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 636var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 681var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 712var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 741var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 772var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
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\NewCommandChannelResolutionTests.cs (2)
69var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 589var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\NewCommandLocalTemplateTests.ConfiguredGitSourceObjects.cs (7)
53var services = CreateServices(workspace, interaction, interactive: true); 100var services = CreateServices(workspace, interaction, interactive: true); 136var services = CreateServices(workspace, interaction, interactive: true); 182var services = CreateServices(workspace, interaction, interactive: true); 227var services = CreateServices(workspace, interaction, interactive: true); 277var services = CreateServices(workspace, interaction, interactive: true); 350var services = CreateServices(workspace, interaction, interactive: true);
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (12)
40var services = CreateServices(workspace, interaction, interactive: true); 73var services = CreateServices(workspace, interaction, interactive: true); 106var services = CreateServices(workspace, interaction, interactive: true); 152var services = CreateServices(workspace, interaction, interactive: true); 196var services = CreateServices(workspace, interaction, interactive: true); 265var services = CreateServices(workspace, interaction, interactive: true); 332var services = CreateServices(workspace, interaction, interactive: true); 376var services = CreateServices(workspace, interaction, interactive: false); 416var services = CreateServices(workspace, interaction, interactive: true); 452var services = CreateServices(workspace, interaction, interactive: true); 494var services = CreateServices(workspace, interaction, interactive: true); 558var services = CreateServices(workspace, interaction, interactive: true);
Commands\NewCommandLocalTemplateTests.ConfiguredSources.cs (4)
253var services = CreateServices(workspace, interaction, interactive: true); 320var services = CreateServices(workspace, interaction, interactive: true); 495var services = CreateServices(workspace, interaction, interactive: true); 545var services = CreateServices(workspace, interaction, interactive: true);
Commands\NewCommandLocalTemplateTests.cs (29)
628var services = CreateServices(workspace, interaction, interactive: false); 663var services = CreateServices(workspace, interaction, interactive: false); 726var services = CreateServices(workspace, interaction, interactive); 763var services = CreateServices(workspace, interaction, interactive); 801var services = CreateServices(workspace, interaction, interactive); 850var services = CreateServices(workspace, interaction, interactive: false); 934var services = CreateServices(workspace, interaction, interactive: false); 984var services = CreateServices(workspace, interaction, interactive: false); 1033var services = CreateServices(workspace, interaction, interactive: false); 1062var services = CreateServices(workspace, interaction, interactive: false); 1108var services = CreateServices(workspace, interaction, interactive: false); 1141var services = CreateServices(workspace, interaction, interactive: false); 1278var services = CreateServices(workspace, interaction, interactive); 1365var services = CreateServices(workspace, interaction, interactive: false); 1395var services = CreateServices(workspace, interaction, interactive: false); 1451var services = CreateServices(workspace, interaction, interactive: false); 1485var services = CreateServices(workspace, interaction, interactive: false); 1526var services = CreateServices(workspace, interaction, interactive: false); 1558var services = CreateServices(workspace, interaction, interactive: false); 1590var services = CreateServices(workspace, interaction, interactive: false); 1690var services = CreateServices(workspace, interaction, interactive: false); 1729var services = CreateServices(workspace, interaction, interactive: false); 1777var firstServices = CreateServices(workspace, new TestInteractionService(), interactive: false); 1780var secondServices = CreateServices(workspace, new TestInteractionService(), interactive: false); 1819var services = CreateServices(workspace, new TestInteractionService(), interactive: false); 1848var services = CreateServices(workspace, interaction, interactive: false); 1868var services = CreateServices(workspace, interaction, interactive: false); 1920var services = CreateServices(workspace, interaction, interactive: false); 1984private IServiceCollection CreateServices(TemporaryWorkspace workspace, TestInteractionService interaction, bool interactive)
Commands\NewCommandLocalTemplateTests.HostConfiguration.cs (5)
246var services = CreateServices(workspace, interaction, interactive: true); 274var services = CreateServices(workspace, interaction, interactive: true); 316var services = CreateServices(workspace, interaction, interactive: false); 361var services = CreateServices(workspace, interaction, interactive: false); 426var services = CreateServices(workspace, interaction, interactive: true);
Commands\NewCommandLocalTemplateTests.InitConfig.cs (2)
247private IServiceCollection CreateInheritedTemplateServices( 250var services = CreateServices(workspace, interaction, interactive);
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (10)
51var services = CreateServices(workspace, interaction, interactive); 117var services = CreateServices(workspace, interaction, interactive: false); 180var services = CreateServices(workspace, interaction, interactive: false); 220var services = CreateServices(workspace, interaction, interactive: false); 247var services = CreateServices(workspace, interaction, interactive: false); 317var services = CreateServices(workspace, interaction, interactive); 359var services = CreateServices(workspace, interaction, interactive: false); 420var services = CreateServices(workspace, new TestInteractionService(), interactive: false); 449var services = CreateServices(workspace, interaction, interactive: false); 498var services = CreateServices(workspace, interaction, interactive: false);
Commands\NewCommandLocalTemplateTests.SourceList.cs (4)
44var services = CreateServices(workspace, interaction, interactive: true); 302var services = CreateInheritedTemplateServices(workspace, interaction, git, interactive: true); 338var services = CreateServices(workspace, interaction, interactive: true); 405var services = CreateServices(workspace, interaction, interactive: true);
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (3)
242var services = CreateRealGitTemplateSourceServices(workspace, interaction, git, source); 284private IServiceCollection CreateRealGitTemplateSourceServices( 287var services = CreateServices(workspace, interaction, interactive: true);
Commands\NewCommandTemplateConfigPersistenceTests.cs (4)
247var services = CreatePrDogfoodNewTemplateServices(workspace, processPath: null, dotNetRunner: new TestDotNetCliRunner()); 293var services = CreatePrDogfoodNewTemplateServices(workspace, processPath, dotNetRunner); 440var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 549private IServiceCollection CreatePrDogfoodNewTemplateServices(TemporaryWorkspace workspace, string? processPath, TestDotNetCliRunner dotNetRunner)
Commands\NewCommandTests.cs (84)
36var services = CreateServiceCollection(workspace); 82var services = CreateServiceCollection(workspace, options => 110var services = CreateServiceCollection(workspace); 122var services = CreateServiceCollection(workspace, options => 141var configServices = CreateServiceCollection(workspace); 166var services = CreateServiceCollection(workspace, options => 198var services = CreateServiceCollection(workspace); 222var services = CreateServiceCollection(workspace, options => options.DotNetCliRunnerFactory = _ => runner); 257var services = CreateServiceCollection(workspace, options => 296var services = CreateServiceCollection(workspace, options => 328var services = CreateServiceCollection(workspace, options => 362var services = CreateServiceCollection(workspace, options => 443var services = CreateServiceCollection(workspace, options => 521var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 599var services = CreateServiceCollection(workspace, options => 631var services = CreateServiceCollection(workspace, options => 663var services = CreateServiceCollection(workspace, options => 699var services = CreateServiceCollection(workspace, options => 733private IServiceCollection CreateServiceCollection( 784var services = CreateServiceCollection(workspace, options => 855var services = CreateServiceCollection(workspace, options => 904var services = CreateServiceCollection(workspace, options => 967var services = CreateServiceCollection(workspace, options => 1017var services = CreateServiceCollection(workspace, options => 1037var services = CreateServiceCollection(workspace, options => 1082var services = CreateServiceCollection(workspace, options => 1123var services = CreateServiceCollection(workspace, options => 1191var services = CreateServiceCollection(workspace, options => 1241var services = CreateServiceCollection(workspace); 1315var services = CreateServiceCollection(workspace, options => 1360var services = CreateServiceCollection(workspace, options => 1393var services = CreateServiceCollection(workspace, options => 1445var services = CreateServiceCollection(workspace); 1467var services = CreateServiceCollection(workspace, options => 1502var services = CreateServiceCollection(workspace, options => 1536var services = CreateServiceCollection(workspace, options => 1568var services = CreateServiceCollection(workspace, options => 1605var services = CreateServiceCollection(workspace, options => 1641var services = CreateServiceCollection(workspace); 1668var services = CreateServiceCollection(workspace); 1694var services = CreateServiceCollection(workspace, options => 1732var services = CreateServiceCollection(workspace, options => options.NuGetPackageCacheFactory = _ => cache); 1759var services = CreateServiceCollection(workspace); 1793var services = CreateServiceCollection(workspace); 1840var services = CreateServiceCollection(workspace, options => 1899var services = CreateServiceCollection(workspace); 1926var services = CreateServiceCollection(workspace, options => 1974var services = CreateServiceCollection(workspace, options => 2022var services = CreateServiceCollection(workspace, options => 2101var services = CreateServiceCollection(workspace, options => 2176var services = CreateServiceCollection(workspace, options => 2242var services = CreateServiceCollection(workspace, options => 2301var services = CreateServiceCollection(workspace, options => 2360var services = CreateServiceCollection(workspace, options => 2409var services = CreateServiceCollection(workspace, options => 2436var services = CreateServiceCollection(workspace, options => 2461var services = CreateServiceCollection(workspace, options => 2490var services = CreateServiceCollection(workspace, options => 2540var services = CreateServiceCollection(workspace, options => 2584var services = CreateServiceCollection(workspace, options => 2630var services = CreateServiceCollection(workspace, options => 2671var services = CreateServiceCollection(workspace, options => 2719var services = CreateServiceCollection(workspace, options => 2754var services = CreateServiceCollection(workspace, options => 2813var services = CreateServiceCollection(workspace, options => 2872var services = CreateServiceCollection(workspace, options => 2933var services = CreateServiceCollection(workspace, options => 3001var services = CreateServiceCollection(workspace, options => 3058var services = CreateServiceCollection(workspace, options => 3141var services = CreateServiceCollection(workspace, options => 3204var services = CreateServiceCollection(workspace, options => 3276var services = CreateServiceCollection(workspace, options => 3340var services = CreateServiceCollection(workspace, options => 3405var services = CreateServiceCollection(workspace, options => 3431var services = CreateServiceCollection(workspace, options => 3457var services = CreateServiceCollection(workspace, options => 3486var services = CreateServiceCollection(workspace, options => 3516var services = CreateServiceCollection(workspace, options => 3547var services = CreateServiceCollection(workspace, options => 3576var services = CreateServiceCollection(workspace); 3596var services = CreateServiceCollection(workspace, options => 3628var services = CreateServiceCollection(workspace, options => 3661var services = CreateServiceCollection(workspace, options => 3713var services = CreateServiceCollection(workspace, options =>
Commands\PipelineCommandListStepsTests.cs (1)
151var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\PsCommandTests.cs (22)
38var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 53var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 72var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 90var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 105var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 153var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 205var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 243var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 289var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 331var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 376var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 409var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 450var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 475var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 510var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 550var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 592var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 640var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 684var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 728var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 775var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 814var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\PublishCommandPromptingIntegrationTests.cs (20)
35var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 81var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 133var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 180var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 226var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 276var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 311var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 358var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 437var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 505var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 557var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 612var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 683var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 727var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 770var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 820var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 866var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 906var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 952var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 986var 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\ResourceCommandTests.cs (35)
26var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 111var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 174var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 221var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 313var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 332var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 349var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 369var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 386var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 400var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 422var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 518var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 575var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 602var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 639var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 674var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 712var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 745var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 772var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 799var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 826var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 853var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 909var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 973var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1552var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1588var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1623var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1745var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1982var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2002var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2038var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2140var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2231var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2305var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2367var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\RestoreCommandTests.cs (2)
25var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, (Action<CliServiceCollectionTestOptions>?)(options => 60var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, (Action<CliServiceCollectionTestOptions>?)(options =>
Commands\RootCommandTests.cs (34)
21var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 44var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 68var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 118var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 151var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 184var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 198var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 213var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 237var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 254var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 277var normalServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 283var extensionServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 306var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 335var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 358var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 380var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 402var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 432var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 455var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 488var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 514var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 537var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 562var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 586var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 623var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 648var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 669var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 690var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 714var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 731var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 744var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 760var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 784var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 807var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\RunCommandTests.cs (80)
48var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 80var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 110var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 137var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 176var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 230var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 276var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 312var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 333var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 378var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 419var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 467var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 505var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 625var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 694var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 742var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 805var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 919var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1022var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1127var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1201var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1238var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1263var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1286var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1303var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1366var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1396var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1425var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1458var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1490var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1541var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1570var parentServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1600var childServices = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1655var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1686var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1791var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1861var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1929var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1985var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2045var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2116var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2193var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2309var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2370var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2422var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2494var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2651var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2712var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2833var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2901var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2947var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2995var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3039var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3101var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3211var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3311var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3381var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3450var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3512var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3565var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3647var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3706var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3761var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3818var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3877var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3904var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3952var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3996var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 4044var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 4087var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 4131var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 4175var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 4285var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4366var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4428var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 4448var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 5062var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, testOptions => 5288var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5363var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 5412var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\Sdk\SdkExportCommandTests.cs (2)
25var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 398var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\SdkCommandTests.cs (2)
17var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 32var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\SdkDumpCommandTests.cs (16)
30var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 52var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 65var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 80var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 95var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 110var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 125var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 140var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 153var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 166var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 179var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 194var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 209var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 224var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 237var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 271var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\SdkInstallerTests.cs (6)
31var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 56var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 81var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 118var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 156var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 181var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\SecretCommandTests.cs (1)
964var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\StartCommandTests.cs (18)
41var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 63var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 78var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 100var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 114var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 128var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 144var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 175var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 204var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 229var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 271var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 307var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 338var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 374var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 491var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, testOptions => 654var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 673var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 686var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\StopCommandTests.cs (43)
33var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 48var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 79var services = CreateInstanceStopServices(workspace, monitor, interactionService, processFactory, interactive); 149var services = CreateInstanceStopServices(workspace, monitor, interactionService, processFactory, interactive: false); 193var services = CreateInstanceStopServices(workspace, monitor, interactionService, processFactory, interactive: false); 214var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 241var services = CreateInstanceStopServices(workspace, monitor, interactionService, processFactory, interactive: false); 280var services = CreateInstanceStopServices(workspace, monitor, interactionService, processFactory, interactive: false); 311var services = CreateInstanceStopServices(workspace, monitor, interactionService, processFactory, interactive: true); 327var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 354var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 395var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 431var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 467var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 519var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 554var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 594var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 633var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 670var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 715var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 752var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 787var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 831var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 871var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 903var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 942var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 981var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1018var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1059var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1099var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1139var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1184var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1231var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1265var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1303var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1341var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1375var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1415var services = CreateStopForceServices(workspace, interactionService, processFactory, options => 1436var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1458var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1496var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1512private IServiceCollection CreateStopForceServices( 1583private IServiceCollection CreateInstanceStopServices(
Commands\TelemetryCommandTests.cs (3)
28var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 288var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 357var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\TelemetryFollowTests.cs (1)
267var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\TelemetryLogsCommandTests.cs (14)
26var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 44var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 209var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 261var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 286var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 309var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 350var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 393var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 432var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 462var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 502var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 556var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 639var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 705var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\TelemetrySpansCommandTests.cs (9)
25var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 43var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 182var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 209var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 245var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 285var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 368var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 439var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 486var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\TelemetryTestHelper.cs (1)
116var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\TelemetryTracesCommandTests.cs (11)
27var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 118var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 205var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 240var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 427var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 454var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 490var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 572var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 656var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 705var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 752var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\TerminalCommandTests.cs (6)
22var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 38var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 52var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 66var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 175var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 325var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\TerminalCommandViewerOptionTests.cs (3)
22var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 50var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 65var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\TerminalTapePlayCommandTests.cs (3)
29var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 41var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 101var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Commands\TrayCommandTests.cs (3)
600private (IServiceCollection Services, TestBundleService Bundle, TestProcessExecutionFactory Factory, TestInteractionService Interaction, string CliPath) CreateServices(TemporaryWorkspace workspace) 619var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 631private static void ConfigureWindows(IServiceCollection services, TestBundleService bundle)
Commands\TrayProtocolCommandTests.cs (7)
29var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 62var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 92var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 110var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 178var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 232var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configuration => 279var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configuration =>
Commands\UpdateCommandRepositoryToolsTests.cs (8)
39var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 120var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 199var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 242var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 297var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 332var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 363var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 478var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\UpdateCommandTests.cs (55)
36var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 50var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 69var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 97var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 143var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 259var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 305var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 388var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 446var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 500var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 555var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 612var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 691var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 768var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 843var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 886var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 927var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1011var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1087var services = CreateMigrationUpdateServices(workspace, interactionService, pendingMigration); 1123var services = CreateMigrationUpdateServices(workspace, interactionService, pendingMigration); 1150var services = CreateMigrationUpdateServices(workspace, interactionService, migration); 1164private IServiceCollection CreateMigrationUpdateServices( 1169var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1222var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1246var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1281var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1340var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1444var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1466var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1506var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1559var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1603var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1631var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1681var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1717var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1782var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1846var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1904var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1981var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2030var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2197var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2255var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2475var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2574var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2638var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2709var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 2999var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3104var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3131var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3174var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3219var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3262var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3296var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3434var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 3610var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Commands\WaitCommandTests.cs (15)
22var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 37var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 52var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 66var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 80var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 94var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 111var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 128var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 156var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 197var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 235var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 266var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 303var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 334var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 376var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
DotNet\DotNetCliRunnerTests.cs (61)
305var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 481var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 530var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 569var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 605var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 647var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 686var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 714var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 746var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 850var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 883var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 920var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 949var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 986var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1023var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1051var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1088var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1129var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1174var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1233var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1291var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1326var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1366var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1408var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1463var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1536var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1582var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1624var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 1666var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1719var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1786var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1852var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1934var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 1975var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2005var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2052var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2098var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2135var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2172var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2212var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2257var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2309var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2358var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2406var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2443var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2512var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2550var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2593var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2635var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2675var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2764var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2798var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2845var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2887var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 2968var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3024var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3094var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3132var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3170var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3210var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 3249var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Mcp\ListIntegrationsToolTests.cs (4)
90var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 118var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 145var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 285var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
NuGet\BundleNuGetPackageCacheTests.cs (13)
22var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 48var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 77var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 107var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 147var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 191var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 232var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 264var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 298var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 353var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 385var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 419var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 454var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
NuGet\NuGetPackageCacheTests.cs (11)
20var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 69var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 139var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 188var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 221var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 260var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 332var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 372var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 416var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 451var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 489var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure =>
NuGet\NuGetPackagePrefetcherTests.cs (9)
50var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 70var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options => 239var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 253var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 271var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 286var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 311var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 327var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 343var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Packaging\IntegrationSourceTests.cs (6)
227var services = CliTestHelper.CreateServiceCollection(workspace, output, options => 287var services = CliTestHelper.CreateServiceCollection(workspace, output); 358var services = CliTestHelper.CreateServiceCollection(workspace, output, options => 408var services = CliTestHelper.CreateServiceCollection(workspace, output, options => 439var services = CliTestHelper.CreateServiceCollection(workspace, output, options => 466var services = CliTestHelper.CreateServiceCollection(workspace, output);
Packaging\PackageChannelTests.cs (1)
97var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Projects\DotNetAppHostProjectTests.cs (2)
1174var services = CliTestHelper.CreateServiceCollection(_workspace, outputHelper); 4824var services = CliTestHelper.CreateServiceCollection(_workspace, outputHelper, options =>
Projects\ProjectUpdaterNuGetConfigurationTests.cs (3)
1403var services = CreateServices(workspace, runner, new FakeNuGetClient 1736private IServiceCollection CreateServices(TemporaryWorkspace workspace, TestDotNetCliRunner runner) 1744private IServiceCollection CreateServices(TemporaryWorkspace workspace, TestDotNetCliRunner runner, FakeNuGetClient client)
Projects\ProjectUpdaterTests.cs (41)
92var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 234var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 351var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 451var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 576var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 730var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 843var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1003var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1131var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1291var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1410var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1513var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1639var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1733var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1808var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1903var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 1965var services = CreateNuGetConfigTestServices(workspace, "9.5.0", PackageSources.NuGetOrg, verifySearch: null); 2009var services = CreateNuGetConfigTestServices( 2048var services = CreateNuGetConfigTestServices(workspace, "9.5.0-preview.1", DailyPackageSource, verifySearch: null); 2074private IServiceCollection CreateNuGetConfigTestServices( 2252var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 2368var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 2489var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 2602var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 2698var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 2807var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 2892var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 2969var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3053var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3148var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3240var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3316var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3396var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3486var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3565var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3643var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 3797var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 4181var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 4291var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 4368var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config => 4454var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, config =>
Templating\CliTemplateFactoryConfigLineEndingTests.cs (1)
29var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Templating\JavaStarterScaffoldTests.cs (1)
126var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Templating\TemplateEngineFactoryGitCheckoutTests.cs (4)
79var services = CreateServices(workspace); 103var services = CreateServices(workspace); 113private IServiceCollection CreateServices(TemporaryWorkspace workspace) 115var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Templating\TemplateEngineFactoryGitTests.cs (6)
37var services = CreateServices(workspace, commands); 175var services = CreateServices(workspace, commands); 200var services = CreateServices(workspace, commands); 228var services = CreateServices(workspace, commands); 238private IServiceCollection CreateServices(TemporaryWorkspace workspace, TestGitCommandRunner commands) 240var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
TestServices\TerminalCommandTestServices.cs (1)
32var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, options =>
Utils\CliTestHelper.cs (3)
67Action<IServiceCollection>? configureServices = null) 69var services = CreateServiceCollection(workspace, outputHelper, testOptions => 83public static IServiceCollection CreateServiceCollection(TemporaryWorkspace workspace, ITestOutputHelper outputHelper, Action<CliServiceCollectionTestOptions>? configure = null)
Utils\CliTestHelperTests.cs (1)
20var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Utils\CliUpdateNotificationServiceTests.cs (11)
25var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 72var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 116var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 157var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 185var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 223var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 259var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 296var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 332var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper, configure => 368var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper); 393var services = CliTestHelper.CreateServiceCollection(workspace, outputHelper);
Aspire.Dashboard (6)
src\Shared\Telemetry\AzureMonitorTelemetryProvider.cs (6)
40IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 45IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 51IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 58IServiceCollection services, ResourceBuilder resourceBuilder, string activitySourceName, string eventLogCategoryName, 85IServiceCollection services, ResourceBuilder resourceBuilder, string eventLogCategoryName, 90IServiceCollection services, ResourceBuilder resourceBuilder, string eventLogCategoryName,
Aspire.Dashboard.Components.Tests (5)
Shared\ResourceSetupHelpers.cs (3)
36Action<IServiceCollection>? configureServices = null) 46Action<IServiceCollection>? configureServices = null) 105Action<IServiceCollection>? configureServices = null)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Aspire.Dashboard.Playwright.Tests (7)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (2)
36protected virtual void ConfigureServices(IServiceCollection services) 71Action<IServiceCollection>? configureServices = null)
Integration\Playwright\ResourcePaneResponsiveTests.cs (1)
2616protected override void ConfigureServices(IServiceCollection services)
Integration\Playwright\TerminalDockTests.cs (1)
511protected override void ConfigureServices(IServiceCollection services)
Integration\Playwright\TerminalTests.cs (1)
678protected override void ConfigureServices(IServiceCollection services)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Aspire.Dashboard.Tests (4)
Model\DashboardDataSourceTests.cs (1)
355var services = new ServiceCollection()
Telemetry\DashboardTelemetryManagerTests.cs (1)
320private static void ConfigureServices(IServiceCollection services, bool enabled)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Aspire.Hosting (18)
DistributedApplication.cs (1)
332/// property to access the <see cref="IServiceCollection"/> instance.
DistributedApplicationBuilder.cs (1)
89public IServiceCollection Services => _innerBuilder.Services;
IDistributedApplicationBuilder.cs (1)
77public IServiceCollection Services { get; }
Lifecycle\EventingSubscriberServiceCollectionExtensions.cs (5)
10/// Provides extension methods for adding event subscribers to the <see cref="IServiceCollection"/>. 18/// <param name="services">The <see cref="IServiceCollection"/> to add the event subscriber to.</param> 20public static void AddEventingSubscriber<T>(this IServiceCollection services) where T : class, IDistributedApplicationEventingSubscriber 29/// <param name="services">The <see cref="IServiceCollection"/> to add the event subscriber to.</param> 31public static void TryAddEventingSubscriber<T>(this IServiceCollection services) where T : class, IDistributedApplicationEventingSubscriber
Lifecycle\LifecycleHookServiceCollectionExtensions.cs (7)
10/// Provides extension methods for adding lifecycle hooks to the <see cref="IServiceCollection"/>. 18/// <param name="services">The <see cref="IServiceCollection"/> to add the distributed application lifecycle hook to.</param> 21public static void AddLifecycleHook<T>(this IServiceCollection services) where T : class, IDistributedApplicationLifecycleHook 30/// <param name="services">The <see cref="IServiceCollection"/> to add the distributed application lifecycle hook to.</param> 33public static void TryAddLifecycleHook<T>(this IServiceCollection services) where T : class, IDistributedApplicationLifecycleHook 46public static void AddLifecycleHook<T>(this IServiceCollection services, Func<IServiceProvider, T> implementationFactory) where T : class, IDistributedApplicationLifecycleHook 59public static void TryAddLifecycleHook<T>(this IServiceCollection services, Func<IServiceProvider, T> implementationFactory) where T : class, IDistributedApplicationLifecycleHook
ResourceBuilderExtensions.cs (2)
3941/// instance with a specific handler, timeout, or other options using <see cref="HttpClientFactoryServiceCollectionExtensions.AddHttpClient(IServiceCollection, string)"/>. 4035/// instance with a specific handler, timeout, or other options using <see cref="HttpClientFactoryServiceCollectionExtensions.AddHttpClient(IServiceCollection, string)"/>.
Utils\LoggingUtils.cs (1)
12public static void SuppressHealthCheckHttpClientLogging(this IServiceCollection services, string healthCheckName)
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
774public IServiceCollection Services => throw new NotImplementedException();
Aspire.Hosting.DevTunnels.Tests (1)
TestDevTunnelMonitor.cs (1)
17public TestDevTunnelMonitor(TimeProvider? timeProvider = null, bool includeSecondPort = false, Action<IServiceCollection>? configureServices = null)
Aspire.Hosting.JavaScript.Tests (1)
AddDenoAppTests.cs (1)
2694private static DistributedApplicationExecutionContext CreateRunExecutionContext(IServiceCollection services) =>
Aspire.Hosting.Native.Core.Tests (2)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Aspire.Hosting.RemoteHost (1)
RemoteHostServer.cs (1)
82private static void ConfigureServices(IServiceCollection services, IConfiguration configuration)
Aspire.Hosting.RemoteHost.Tests (3)
JsonRpcAuthenticationTests.cs (1)
341private static void ConfigureServices(IServiceCollection services)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Aspire.Hosting.Testing (4)
DistributedApplicationFactory.cs (1)
355var services = applicationBuilder.Services;
DistributedApplicationTestingBuilder.cs (3)
520public IServiceCollection Services => innerBuilder.Services; 685public IServiceCollection Services => _innerBuilder.Services; 775new IServiceCollection Services => ((IDistributedApplicationBuilder)this).Services;
Aspire.Hosting.Testing.Tests (6)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (4)
29public static IServiceCollection AddTestAndResourceLogging(this IServiceCollection services, ITestOutputHelper testOutputHelper, IConfigurationManager configuration, string? applicationName = null, bool isPublishMode = false) 62private static IServiceCollection AddDcpDiagnostics(this IServiceCollection services, IConfigurationManager configuration, string? applicationName, ITestOutputHelper testOutputHelper)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Aspire.Hosting.TestUtilities (8)
Publishing\FakeContainerRuntimeExtensions.cs (2)
29public static IServiceCollection AddFakeContainerRuntime(this IServiceCollection services, FakeContainerRuntime runtime)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (4)
29public static IServiceCollection AddTestAndResourceLogging(this IServiceCollection services, ITestOutputHelper testOutputHelper, IConfigurationManager configuration, string? applicationName = null, bool isPublishMode = false) 62private static IServiceCollection AddDcpDiagnostics(this IServiceCollection services, IConfigurationManager configuration, string? applicationName, ITestOutputHelper testOutputHelper)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Aspire.Playground.Tests (2)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (2)
48public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Binding.UDS.IntegrationTests (7)
ServiceHelper.cs (3)
20var configureServicesMethod = startupType.GetMethod("ConfigureServices", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, new Type[] { typeof(IServiceCollection) }); 30var configureServiceAction = (Action<IServiceCollection>)configureServicesMethod.CreateDelegate(typeof(Action<IServiceCollection>), startupInstance);
UDSBindingTests.cs (4)
220public void ConfigureServices(IServiceCollection services) 238public void ConfigureServices(IServiceCollection services) 267public void ConfigureServices(IServiceCollection services) 306public void ConfigureServices(IServiceCollection services)
blazor-devserver (1)
Server\Startup.cs (1)
23public static void ConfigureServices(IServiceCollection services)
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
689MetadataReference.CreateFromFile(typeof(IServiceCollection).Assembly.Location),
DotNetHostedAgent (3)
HostedContributorSetupExtensions.cs (3)
16/// <returns>The same <see cref="IServiceCollection"/> for chaining.</returns> 17public static IServiceCollection AddDevTemporaryLocalContributorSetup(this IServiceCollection services)
Microsoft.Arcade.Common (1)
MSBuildTaskBase.cs (1)
62public abstract void ConfigureServices(IServiceCollection collection);
Microsoft.AspNetCore (17)
BootstrapHostBuilder.cs (4)
18private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new(); 35throw new InvalidOperationException($"{nameof(HostBuilderContext)} must exist in the {nameof(IServiceCollection)}"); 55public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate) 119return genericWebHostServiceDescriptor ?? throw new InvalidOperationException($"GenericWebHostedService must exist in the {nameof(IServiceCollection)}");
ConfigureHostBuilder.cs (4)
19private readonly IServiceCollection _services; 28IServiceCollection services) 95public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate) 156public object CreateBuilder(IServiceCollection services) => _serviceProviderFactory.CreateBuilder(services);
ConfigureWebHostBuilder.cs (5)
20private readonly IServiceCollection _services; 23internal ConfigureWebHostBuilder(WebHostBuilderContext webHostBuilderContext, ConfigurationManager configuration, IServiceCollection services) 90public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) 98public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 100return ConfigureServices((WebHostBuilderContext context, IServiceCollection services) => configureServices(services));
WebApplicationBuilder.cs (2)
336private static void AddDefaultServicesSlim(ConfigurationManager configuration, IServiceCollection services) 362public IServiceCollection Services => _hostApplicationBuilder.Services;
WebHost.cs (2)
93private static IWebHost StartWith(string? url, Action<IServiceCollection>? configureServices, Action<IApplicationBuilder> app, string? applicationName) 255private static void ConfigureWebDefaultsWorker(IWebHostBuilder builder, Action<IServiceCollection>? configureRouting)
Microsoft.AspNetCore.Antiforgery (11)
AntiforgeryServiceCollectionExtensions.cs (11)
11/// Extension methods for setting up antiforgery services in an <see cref="IServiceCollection" />. 16/// Adds antiforgery services to the specified <see cref="IServiceCollection" />. 18/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 19/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 20public static IServiceCollection AddAntiforgery(this IServiceCollection services) 41/// Adds antiforgery services to the specified <see cref="IServiceCollection" />. 43/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 45/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 46public static IServiceCollection AddAntiforgery(this IServiceCollection services, Action<AntiforgeryOptions> setupAction)
Microsoft.AspNetCore.AsyncState (3)
AsyncStateHttpContextExtensions.cs (3)
21/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 24public static IServiceCollection AddAsyncStateHttpContext(this IServiceCollection services)
Microsoft.AspNetCore.AsyncState.Tests (1)
AsyncContextHttpContextOfTTests.cs (1)
20var serviceCollection = new ServiceCollection()
Microsoft.AspNetCore.Authentication (9)
AuthenticationBuilder.cs (2)
20public AuthenticationBuilder(IServiceCollection services) 28public virtual IServiceCollection Services { get; }
AuthenticationServiceCollectionExtensions.cs (7)
10/// Extension methods for setting up authentication services in an <see cref="IServiceCollection" />. 17/// <param name="services">The <see cref="IServiceCollection"/>.</param> 19public static AuthenticationBuilder AddAuthentication(this IServiceCollection services) 39/// <param name="services">The <see cref="IServiceCollection"/>.</param> 42public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, string defaultScheme) 48/// <param name="services">The <see cref="IServiceCollection"/>.</param> 51public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, Action<AuthenticationOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationHttpContextExtensions.cs (1)
220nameof(IServiceCollection),
Microsoft.AspNetCore.Authentication.Core (7)
AuthenticationCoreServiceCollectionExtensions.cs (7)
10/// Extension methods for setting up authentication services in an <see cref="IServiceCollection" />. 17/// <param name="services">The <see cref="IServiceCollection"/>.</param> 19public static IServiceCollection AddAuthenticationCore(this IServiceCollection services) 35/// <param name="services">The <see cref="IServiceCollection"/>.</param> 38public static IServiceCollection AddAuthenticationCore(this IServiceCollection services, Action<AuthenticationOptions> configureOptions)
Microsoft.AspNetCore.Authorization (13)
AuthorizationBuilder.cs (2)
20public AuthorizationBuilder(IServiceCollection services) 26public virtual IServiceCollection Services { get; }
AuthorizationServiceCollectionExtensions.cs (11)
13/// Extension methods for setting up authorization services in an <see cref="IServiceCollection" />. 18/// Adds authorization services to the specified <see cref="IServiceCollection" />. 20/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 21/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 22public static IServiceCollection AddAuthorizationCore(this IServiceCollection services) 43/// Adds authorization services to the specified <see cref="IServiceCollection" />. 45/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 47/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 48public static IServiceCollection AddAuthorizationCore(this IServiceCollection services, Action<AuthorizationOptions> configure)
Microsoft.AspNetCore.Authorization.Policy (20)
AuthorizationAppBuilderExtensions.cs (1)
43nameof(IServiceCollection),
PolicyServiceCollectionExtensions.cs (19)
11/// Extension methods for setting up authorization services in an <see cref="IServiceCollection" />. 16/// Adds authorization services to the specified <see cref="IServiceCollection" />. 18/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 20public static AuthorizationBuilder AddAuthorizationBuilder(this IServiceCollection services) 24/// Adds the authorization policy evaluator service to the specified <see cref="IServiceCollection" />. 26/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 27/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 28public static IServiceCollection AddAuthorizationPolicyEvaluator(this IServiceCollection services) 39/// Adds authorization policy services to the specified <see cref="IServiceCollection" />. 41/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 42/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 43public static IServiceCollection AddAuthorization(this IServiceCollection services) 54/// Adds authorization policy services to the specified <see cref="IServiceCollection" />. 56/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 58/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 59public static IServiceCollection AddAuthorization(this IServiceCollection services, Action<AuthorizationOptions> configure)
Microsoft.AspNetCore.Components (47)
CascadingValueServiceCollectionExtensions.cs (26)
11/// Extension methods for configuring cascading values on an <see cref="IServiceCollection"/>. 20/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 22/// <returns>The <see cref="IServiceCollection"/>.</returns> 23public static IServiceCollection AddCascadingValue<TValue>( 24this IServiceCollection serviceCollection, Func<IServiceProvider, TValue> initialValueFactory) 32/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 35/// <returns>The <see cref="IServiceCollection"/>.</returns> 36public static IServiceCollection AddCascadingValue<TValue>( 37this IServiceCollection serviceCollection, string name, Func<IServiceProvider, TValue> initialValueFactory) 49/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 51/// <returns>The <see cref="IServiceCollection"/>.</returns> 52public static IServiceCollection AddCascadingValue<TValue>( 53this IServiceCollection serviceCollection, Func<IServiceProvider, CascadingValueSource<TValue>> sourceFactory) 60/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 62/// <returns>The <see cref="IServiceCollection"/>.</returns> 63public static IServiceCollection TryAddCascadingValueSupplier<TAttribute>( 64this IServiceCollection serviceCollection, 80/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 82/// <returns>The <see cref="IServiceCollection"/>.</returns> 84this IServiceCollection serviceCollection, Func<IServiceProvider, TValue> valueFactory) 97/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 100/// <returns>The <see cref="IServiceCollection"/>.</returns> 102this IServiceCollection serviceCollection, string name, Func<IServiceProvider, TValue> valueFactory) 119/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 121/// <returns>The <see cref="IServiceCollection"/>.</returns> 123this IServiceCollection serviceCollection, Func<IServiceProvider, CascadingValueSource<TValue>> sourceFactory)
PersistentState\PersistentStateProviderServiceCollectionExtensions.cs (4)
17/// <param name="services">The <see cref="IServiceCollection"/>.</param> 18/// <returns>The <see cref="IServiceCollection"/>.</returns> 19public static IServiceCollection AddSupplyValueFromPersistentComponentStateProvider(this IServiceCollection services)
RegisterPersistentComponentStateServiceCollectionExtensions.cs (4)
23/// <param name="services">The <see cref="IServiceCollection"/>.</param> 25/// <returns>The <see cref="IServiceCollection"/>.</returns> 26public static IServiceCollection AddPersistentServiceRegistration<[DynamicallyAccessedMembers(JsonSerialized)] TService>( 27IServiceCollection services,
RegisterRenderingMetricsServiceCollectionExtensions.cs (9)
18/// <param name="services">The <see cref="IServiceCollection"/>.</param> 19/// <returns>The <see cref="IServiceCollection"/>.</returns> 20public static IServiceCollection AddComponentsMetrics( 21IServiceCollection services) 36/// <param name="services">The <see cref="IServiceCollection"/>.</param> 37/// <returns>The <see cref="IServiceCollection"/>.</returns> 38public static IServiceCollection AddComponentsTracing( 39IServiceCollection services) 46private static bool IsMeterFactoryRegistered(IServiceCollection services)
SupplyParameterFromQueryProviderServiceCollectionExtensions.cs (4)
18/// <param name="services">The <see cref="IServiceCollection"/>.</param> 19/// <returns>The <see cref="IServiceCollection"/>.</returns> 20public static IServiceCollection AddSupplyValueFromQueryProvider(this IServiceCollection services)
Microsoft.AspNetCore.Components.Authorization (4)
CascadingAuthenticationStateServiceCollectionExtensions.cs (4)
18/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 19/// <returns>The <see cref="IServiceCollection"/>.</returns> 20public static IServiceCollection AddCascadingAuthenticationState(this IServiceCollection serviceCollection)
Microsoft.AspNetCore.Components.Endpoints (10)
Builder\RazorComponentsEndpointRouteBuilderExtensions.cs (1)
63nameof(IServiceCollection),
DependencyInjection\IRazorComponentsBuilder.cs (2)
12/// Gets the <see cref="IServiceCollection"/>. 14public IServiceCollection Services { get; }
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (3)
37public static IRazorComponentsBuilder AddRazorComponents(this IServiceCollection services, Action<RazorComponentsServiceOptions>? configure = null) 120private sealed class DefaultRazorComponentsBuilder(IServiceCollection services) : IRazorComponentsBuilder 122public IServiceCollection Services { get; } = services;
TempData\TempDataProviderServiceCollectionExtensions.cs (4)
17internal static IServiceCollection AddTempData(this IServiceCollection services) 38private static IServiceCollection AddTempDataCascadingValue(IServiceCollection services)
Microsoft.AspNetCore.Components.Platform (4)
BrowserPlatformServiceCollectionExtensions.cs (4)
17/// <param name="services">The <see cref="IServiceCollection"/> to add services to.</param> 18/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 20public static IServiceCollection AddBrowserPlatform(this IServiceCollection services)
Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdapter (3)
EntityFrameworkAdapterServiceCollectionExtensions.cs (3)
10/// Provides extension methods to configure <see cref="IAsyncQueryExecutor"/> on a <see cref="IServiceCollection"/>. 17/// <param name="services">The <see cref="IServiceCollection"/>.</param> 18public static void AddQuickGridEntityFrameworkAdapter(this IServiceCollection services)
Microsoft.AspNetCore.Components.Server (12)
CircuitOptions.cs (1)
59/// and the configuration from <see cref="Extensions.DependencyInjection.MemoryCacheServiceCollectionExtensions.AddMemoryCache(Extensions.DependencyInjection.IServiceCollection)"/>
DependencyInjection\ComponentServiceCollectionExtensions.cs (5)
26/// Extension methods to configure an <see cref="IServiceCollection"/> for components. 33/// <param name="services">The <see cref="IServiceCollection"/>.</param> 37public static IServerSideBlazorBuilder AddServerSideBlazor(this IServiceCollection services, Action<CircuitOptions>? configure = null) 137public DefaultServerSideBlazorBuilder(IServiceCollection services) 142public IServiceCollection Services { get; }
DependencyInjection\IServerSideBlazorBuilder.cs (3)
12/// Gets the <see cref="IServiceCollection"/>. 14new IServiceCollection Services { get; } 16IServiceCollection IRazorComponentsBuilder.Services => Services;
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (3)
21/// Extension methods to configure an <see cref="IServiceCollection"/> for components. 45public DefaultServerSideBlazorBuilder(IServiceCollection services) 50public IServiceCollection Services { get; }
Microsoft.AspNetCore.Components.Testing (9)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\ServiceOverrideResolver.g.cs (1)
8public global::System.Action<global::Microsoft.Extensions.DependencyInjection.IServiceCollection>? TryResolve(
Infrastructure\IE2EServiceOverrideResolver.cs (1)
44Action<IServiceCollection>? TryResolve(string assemblyQualifiedTypeName, string methodName);
Infrastructure\TestReadinessHostingStartup.cs (3)
53Action<IServiceCollection>? configureServices = TryResolveViaGeneratedResolver(overrideTypeName, overrideMethodName); 65null, [typeof(IServiceCollection)], null) 80static Action<IServiceCollection>? TryResolveViaGeneratedResolver(
Infrastructure\TestServiceOverrideObserver.cs (4)
18private readonly Action<IServiceCollection> _configureServices; 20internal TestServiceOverrideObserver(Action<IServiceCollection> configureServices) 38private readonly Action<IServiceCollection> _configureServices; 40internal HostBuildingObserver(Action<IServiceCollection> configureServices)
Microsoft.AspNetCore.Components.Web (6)
Forms\Mapping\SupplyParameterFromFormServiceCollectionExtensions.cs (6)
10/// Extension methods for configuring <see cref="SupplyParameterFromFormAttribute"/> within an <see cref="IServiceCollection"/>. 15/// Adds support for <see cref="SupplyParameterFromFormAttribute"/> within the <see cref="IServiceCollection"/>. 17/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param> 18/// <returns>The <see cref="IServiceCollection"/>.</returns> 19public static IServiceCollection AddSupplyValueFromFormProvider(this IServiceCollection serviceCollection)
Microsoft.AspNetCore.Components.WebAssembly (3)
Hosting\LoggingBuilder.cs (2)
11public LoggingBuilder(IServiceCollection services) 16public IServiceCollection Services { get; }
Hosting\WebAssemblyHostBuilder.cs (1)
259public IServiceCollection Services { get; }
Microsoft.AspNetCore.Components.WebAssembly.Authentication (42)
IRemoteAuthenticationBuilder.cs (2)
18/// The <see cref="IServiceCollection"/>. 20IServiceCollection Services { get; }
RemoteAuthenticationBuilder.cs (2)
13public RemoteAuthenticationBuilder(IServiceCollection services) => Services = services; 15public IServiceCollection Services { get; }
WebAssemblyAuthenticationServiceCollectionExtensions.cs (38)
26/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 29public static IServiceCollection AddAuthenticationStateDeserialization(this IServiceCollection services, Action<AuthenticationStateDeserializationOptions>? configure = null) 48/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 49/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 54this IServiceCollection services) 81private static void AddAuthenticationStateProvider<[DynamicallyAccessedMembers(JsonSerialized)] TRemoteAuthenticationState>(IServiceCollection services) where TRemoteAuthenticationState : RemoteAuthenticationState 93/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 95/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 98this IServiceCollection services, Action<RemoteAuthenticationOptions<TProviderOptions>>? configure) 115/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 117/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 119this IServiceCollection services, Action<RemoteAuthenticationOptions<OidcProviderOptions>> configure) 128/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 130/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 132this IServiceCollection services, Action<RemoteAuthenticationOptions<OidcProviderOptions>> configure) 143/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 145/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 148this IServiceCollection services, Action<RemoteAuthenticationOptions<OidcProviderOptions>> configure) 160/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 161/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 162public static IRemoteAuthenticationBuilder<RemoteAuthenticationState, RemoteUserAccount> AddApiAuthorization(this IServiceCollection services) 171/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 172/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 173public static IRemoteAuthenticationBuilder<TRemoteAuthenticationState, RemoteUserAccount> AddApiAuthorization<[DynamicallyAccessedMembers(JsonSerialized)] TRemoteAuthenticationState>(this IServiceCollection services) 184/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 185/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 187this IServiceCollection services) 197/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 199/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 201this IServiceCollection services, Action<RemoteAuthenticationOptions<ApiAuthorizationProviderOptions>> configure) 210/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 212/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 214this IServiceCollection services, Action<RemoteAuthenticationOptions<ApiAuthorizationProviderOptions>> configure) 225/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 227/// <returns>The <see cref="IServiceCollection"/> where the services were registered.</returns> 229this IServiceCollection services, Action<RemoteAuthenticationOptions<ApiAuthorizationProviderOptions>> configure) 237IServiceCollection services,
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyRazorComponentsBuilderExtensions.cs (1)
17/// Extension methods to configure an <see cref="IServiceCollection"/> for WebAssembly components.
Microsoft.AspNetCore.Components.WebView (4)
ComponentsWebViewServiceCollectionExtensions.cs (4)
15/// Extensions for adding component webview services to the <see cref="IServiceCollection"/>. 22/// <param name="services">The <see cref="IServiceCollection"/> to add the component webview services to.</param> 24public static IServiceCollection AddBlazorWebView(this IServiceCollection services)
Microsoft.AspNetCore.Components.WebView.Maui (12)
IMauiBlazorWebViewBuilder.cs (1)
13 IServiceCollection Services { get; }
MauiBlazorWebViewBuilder.cs (2)
7 public IServiceCollection Services { get; } 9 public MauiBlazorWebViewBuilder(IServiceCollection services)
src\BlazorWebView\src\SharedSource\BlazorWebViewServiceCollectionExtensions.cs (9)
18 /// Extension methods to <see cref="IServiceCollection"/>. 23 /// Configures <see cref="IServiceCollection"/> to add support for <see cref="BlazorWebView"/>. 25 /// <param name="services">The <see cref="IServiceCollection"/>.</param> 26 /// <returns>The <see cref="IServiceCollection"/>.</returns> 37 public static IMauiBlazorWebViewBuilder AddMauiBlazorWebView(this IServiceCollection services) 60 /// <param name="services">The <see cref="IServiceCollection"/>.</param> 61 /// <returns>The <see cref="IServiceCollection"/>.</returns> 62 public static IServiceCollection AddBlazorWebViewDeveloperTools(this IServiceCollection services)
Microsoft.AspNetCore.Components.WebView.WindowsForms (13)
IWindowsFormsBlazorWebViewBuilder.cs (1)
16 IServiceCollection Services { get; }
src\BlazorWebView\src\SharedSource\BlazorWebViewServiceCollectionExtensions.cs (9)
18 /// Extension methods to <see cref="IServiceCollection"/>. 23 /// Configures <see cref="IServiceCollection"/> to add support for <see cref="BlazorWebView"/>. 25 /// <param name="services">The <see cref="IServiceCollection"/>.</param> 26 /// <returns>The <see cref="IServiceCollection"/>.</returns> 28 public static IWindowsFormsBlazorWebViewBuilder AddWindowsFormsBlazorWebView(this IServiceCollection services) 60 /// <param name="services">The <see cref="IServiceCollection"/>.</param> 61 /// <returns>The <see cref="IServiceCollection"/>.</returns> 62 public static IServiceCollection AddBlazorWebViewDeveloperTools(this IServiceCollection services)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
108 $"Please add all the required services by calling '{nameof(IServiceCollection)}.{nameof(BlazorWebViewServiceCollectionExtensions.AddWindowsFormsBlazorWebView)}' in the application startup code.");
WindowsFormsBlazorWebViewBuilder.cs (2)
10 public IServiceCollection Services { get; } 12 public WindowsFormsBlazorWebViewBuilder(IServiceCollection services)
Microsoft.AspNetCore.Components.WebView.Wpf (13)
IWpfBlazorWebViewBuilder.cs (1)
16 IServiceCollection Services { get; }
src\BlazorWebView\src\SharedSource\BlazorWebViewServiceCollectionExtensions.cs (9)
18 /// Extension methods to <see cref="IServiceCollection"/>. 23 /// Configures <see cref="IServiceCollection"/> to add support for <see cref="BlazorWebView"/>. 25 /// <param name="services">The <see cref="IServiceCollection"/>.</param> 26 /// <returns>The <see cref="IServiceCollection"/>.</returns> 30 public static IWpfBlazorWebViewBuilder AddWpfBlazorWebView(this IServiceCollection services) 60 /// <param name="services">The <see cref="IServiceCollection"/>.</param> 61 /// <returns>The <see cref="IServiceCollection"/>.</returns> 62 public static IServiceCollection AddBlazorWebViewDeveloperTools(this IServiceCollection services)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
115 $"Please add all the required services by calling '{nameof(IServiceCollection)}.{nameof(BlazorWebViewServiceCollectionExtensions.AddWpfBlazorWebView)}' in the application startup code.");
WpfBlazorWebViewBuilder.cs (2)
10 public IServiceCollection Services { get; } 12 public WpfBlazorWebViewBuilder(IServiceCollection services)
Microsoft.AspNetCore.CookiePolicy (6)
CookiePolicyServiceCollectionExtensions.cs (6)
16/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 19public static IServiceCollection AddCookiePolicy(this IServiceCollection services, Action<CookiePolicyOptions> configureOptions) 30/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 33public static IServiceCollection AddCookiePolicy<TService>(this IServiceCollection services, Action<CookiePolicyOptions, TService> configureOptions) where TService : class
Microsoft.AspNetCore.Cors (11)
CorsServiceCollectionExtensions.cs (11)
10/// Extension methods for setting up cross-origin resource sharing services in an <see cref="IServiceCollection" />. 15/// Adds cross-origin resource sharing services to the specified <see cref="IServiceCollection" />. 17/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 18/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 19public static IServiceCollection AddCors(this IServiceCollection services) 32/// Adds cross-origin resource sharing services to the specified <see cref="IServiceCollection" />. 34/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 36/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 37public static IServiceCollection AddCors(this IServiceCollection services, Action<CorsOptions> setupAction)
Microsoft.AspNetCore.DataProtection (13)
DataProtectionServiceCollectionExtensions.cs (8)
24/// Extension methods for setting up data protection services in an <see cref="IServiceCollection" />. 29/// Adds data protection services to the specified <see cref="IServiceCollection" />. 31/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 32public static IDataProtectionBuilder AddDataProtection(this IServiceCollection services) 44/// Adds data protection services to the specified <see cref="IServiceCollection" />. 46/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 49public static IDataProtectionBuilder AddDataProtection(this IServiceCollection services, Action<DataProtectionOptions> setupAction) 59private static void AddDataProtectionServices(IServiceCollection services)
IDataProtectionBuilder.cs (2)
39/// Provides access to the <see cref="IServiceCollection"/> passed to this object's constructor. 41IServiceCollection Services { get; }
Internal\DataProtectionBuilder.cs (3)
16/// Creates a new configuration object linked to a <see cref="IServiceCollection"/>. 18public DataProtectionBuilder(IServiceCollection services) 26public IServiceCollection Services { get; }
Microsoft.AspNetCore.Diagnostics (10)
ExceptionHandler\ExceptionHandlerServiceCollectionExtensions.cs (10)
18/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 21public static IServiceCollection AddExceptionHandler(this IServiceCollection services, Action<ExceptionHandlerOptions> configureOptions) 32/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 35public static IServiceCollection AddExceptionHandler<TService>(this IServiceCollection services, Action<ExceptionHandlerOptions, TService> configureOptions) where TService : class 49/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 50/// <returns>The modified <see cref="IServiceCollection"/>.</returns> 51public static IServiceCollection AddExceptionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(this IServiceCollection services) where T : class, IExceptionHandler
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
DatabaseDeveloperPageExceptionFilterServiceExtensions.cs (3)
20/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 26public static IServiceCollection AddDatabaseDeveloperPageExceptionFilter(this IServiceCollection services)
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
Builder\HealthCheckApplicationBuilderExtensions.cs (1)
196nameof(IServiceCollection),
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (1)
60nameof(IServiceCollection),
Microsoft.AspNetCore.Diagnostics.Middleware (47)
Latency\HttpLoggingServiceCollectionExtensions.cs (3)
16/// <param name="services">The <see cref="IServiceCollection"/> to add to.</param> 25public static IServiceCollection AddHttpServerLatencyTelemetry(this IServiceCollection services)
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (17)
22/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 25public static IServiceCollection AddRequestCheckpoint(this IServiceCollection services) 38/// Adds request latency telemetry middleware to the specified <see cref="IServiceCollection" />. 40/// <param name="services">The <see cref="IServiceCollection"/> to add to.</param> 43public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services) 56/// Adds request latency telemetry middleware to the specified <see cref="IServiceCollection" />. 58/// <param name="services">The <see cref="IServiceCollection"/> to add to.</param> 62public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, Action<RequestLatencyTelemetryOptions> configure) 68/// Adds request latency telemetry middleware to the specified <see cref="IServiceCollection" />. 70/// <param name="services">The <see cref="IServiceCollection"/> to add to.</param> 74public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, IConfigurationSection section) 79internal static IServiceCollection AddPipelineEntryCheckpoint(this IServiceCollection services)
Logging\HttpLoggingServiceCollectionExtensions.cs (8)
36public static IServiceCollection AddHttpLoggingRedaction(this IServiceCollection services, Action<LoggingRedactionOptions>? configure = null) 63public static IServiceCollection AddHttpLoggingRedaction(this IServiceCollection services, IConfigurationSection section) 75/// Adds an enricher instance of <typeparamref name="T"/> to the <see cref="IServiceCollection"/> to enrich incoming HTTP requests logs. 78/// <param name="services">The <see cref="IServiceCollection"/> to add the instance of <typeparamref name="T"/> to.</param> 81public static IServiceCollection AddHttpLogEnricher<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(this IServiceCollection services)
Logging\HttpUtilityExtensions.cs (4)
22/// <param name="services">Instance of <see cref="IServiceCollection"/>.</param> 23/// <returns>return <see cref="IServiceCollection"/> object.</returns> 24public static IServiceCollection AddHttpRouteUtilities(this IServiceCollection services)
Logging\RequestHeadersEnricherServiceCollectionExtensions.cs (9)
11/// Extension methods for setting up Request Headers Log Enricher in an <see cref="IServiceCollection" />. 16/// Adds an instance of Request Headers Log Enricher to the <see cref="IServiceCollection"/>. 18/// <param name="services">The <see cref="IServiceCollection"/> to add the Request Headers Log Enricher to.</param> 21public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services) 31/// Adds an instance of Request Headers Log Enricher to the <see cref="IServiceCollection"/>. 33/// <param name="services">The <see cref="IServiceCollection"/> to add the Request Headers Log Enricher to.</param> 37public static IServiceCollection AddRequestHeadersLogEnricher(this IServiceCollection services, Action<RequestHeadersLogEnricherOptions> configure)
src\Shared\Debugger\DebuggerExtensions.cs (6)
25public static IServiceCollection AddSystemDebuggerState(this IServiceCollection services) 39public static IServiceCollection AddAttachedDebuggerState(this IServiceCollection services) 53public static IServiceCollection AddDetachedDebuggerState(this IServiceCollection services)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Logging\AcceptanceTests.cs (3)
51public static void ConfigureServices(IServiceCollection services) 143private static Task RunAsync(LogLevel level, Action<IServiceCollection> configure, Func<FakeLogCollector, HttpClient, Task> func) 148Action<IServiceCollection> configure,
Logging\AcceptanceTests.Mvc.cs (2)
37public static void ConfigureServices(IServiceCollection services) 51private static Task RunControllerAsync(LogLevel level, Action<IServiceCollection> configure, Func<FakeLogCollector, HttpClient, Task> func)
Logging\AcceptanceTests.Routing.cs (2)
28public static void ConfigureServices(IServiceCollection services) 56Action<IServiceCollection> configureHttpLogging,
Logging\HttpLoggingServiceExtensionsTests.cs (2)
26var services = Mock.Of<IServiceCollection>();
Logging\RequestHeadersEnricherExtensionsTests.cs (2)
19((IServiceCollection)null!).AddRequestHeadersLogEnricher()); 22((IServiceCollection)null!).AddRequestHeadersLogEnricher(_ => { }));
Microsoft.AspNetCore.HeaderParsing (9)
HeaderParsingServiceCollectionExtensions.cs (9)
22/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 24public static IServiceCollection AddHeaderParsing(this IServiceCollection services) 44/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 47public static IServiceCollection AddHeaderParsing(this IServiceCollection services, Action<HeaderParsingOptions> configure) 62/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 65public static IServiceCollection AddHeaderParsing(this IServiceCollection services, IConfigurationSection section)
Microsoft.AspNetCore.HeaderParsing.Tests (3)
HeaderParsingExtensionsTests.cs (1)
121private static HttpContext CreateContext(IServiceCollection? services = null)
HeaderParsingFeatureTests.cs (1)
24private readonly IServiceCollection _services;
HeaderRegistryTests.cs (1)
16private readonly IServiceCollection _services;
Microsoft.AspNetCore.HeaderPropagation (10)
DependencyInjection\HeaderPropagationApplicationBuilderExtensions.cs (1)
19nameof(IServiceCollection),
DependencyInjection\HeaderPropagationServiceCollectionExtensions.cs (9)
11/// <see cref="IServiceCollection"/> extension methods for <see cref="HeaderPropagationMiddleware"/> which propagates request headers to an <see cref="System.Net.Http.HttpClient"/>. 18/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 19/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 20public static IServiceCollection AddHeaderPropagation(this IServiceCollection services) 32/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 34/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 35public static IServiceCollection AddHeaderPropagation(this IServiceCollection services, Action<HeaderPropagationOptions> configureOptions)
Microsoft.AspNetCore.HostFiltering (3)
HostFilteringServicesExtensions.cs (3)
17/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 20public static IServiceCollection AddHostFiltering(this IServiceCollection services, Action<HostFilteringOptions> configureOptions)
Microsoft.AspNetCore.Hosting (63)
GenericHost\GenericWebHostBuilder.cs (3)
98private void ScanAssemblyAndRegisterStartup(HostBuilderContext context, IServiceCollection services, WebHostBuilderContext webhostContext, WebHostOptions webHostOptions) 203void ConfigureStartup(HostBuilderContext context, IServiceCollection services) 219private void UseStartup([DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] Type startupType, HostBuilderContext context, IServiceCollection services, object? instance = null)
GenericHost\HostingStartupWebHostBuilder.cs (4)
19private Action<WebHostBuilderContext, IServiceCollection>? _configureServices; 39public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 44public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) 58public void ConfigureServices(WebHostBuilderContext context, IServiceCollection services)
GenericHost\WebHostBuilderBase.cs (2)
47public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 52public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices)
Internal\ConfigureServicesBuilder.cs (7)
19public Func<Func<IServiceCollection, IServiceProvider?>, Func<IServiceCollection, IServiceProvider?>> StartupServiceFilters { get; set; } = f => f; 21public Func<IServiceCollection, IServiceProvider?> Build(object instance) => services => Invoke(instance, services); 23private IServiceProvider? Invoke(object instance, IServiceCollection services) 27IServiceProvider? Startup(IServiceCollection serviceCollection) => InvokeCore(instance, serviceCollection); 30private IServiceProvider? InvokeCore(object instance, IServiceCollection services) 40parameters.Any(p => p.ParameterType != typeof(IServiceCollection)))
Internal\ServiceCollectionExtensions.cs (3)
10public static IServiceCollection Clone(this IServiceCollection serviceCollection) 12IServiceCollection clone = new ServiceCollection();
Internal\StartupLoader.cs (12)
83public abstract Func<IServiceCollection, IServiceProvider> Build(); 105public override Func<IServiceCollection, IServiceProvider> Build() 132Func<IServiceCollection, IServiceProvider> ConfigureServices( 133Func<IServiceCollection, IServiceProvider?> configureServicesCallback, 138IServiceProvider ConfigureServicesWithContainerConfiguration(IServiceCollection services) 159var serviceProviderFactory = HostingServiceProvider.GetRequiredService<IServiceProviderFactory<IServiceCollection>>(); 160var builder = serviceProviderFactory.CreateBuilder(services); 168private Func<IServiceCollection, IServiceProvider?> BuildStartupServicesFilterPipeline(Func<IServiceCollection, IServiceProvider?> startup) 172IServiceProvider? RunPipeline(IServiceCollection services) 185Action<IServiceCollection> pipeline = InvokeStartup; 196void InvokeStartup(IServiceCollection serviceCollection)
Internal\StartupMethods.cs (2)
12public StartupMethods(object? instance, Action<IApplicationBuilder> configure, Func<IServiceCollection, IServiceProvider> configureServices) 23public Func<IServiceCollection, IServiceProvider> ConfigureServicesDelegate { get; }
Internal\WebHost.cs (2)
27private readonly IServiceCollection _applicationServiceCollection; 50IServiceCollection appServices,
Startup\ConventionBasedStartup.cs (1)
33public IServiceProvider ConfigureServices(IServiceCollection services)
Startup\DelegateStartup.cs (2)
14public class DelegateStartup : StartupBase<IServiceCollection> 23public DelegateStartup(IServiceProviderFactory<IServiceCollection> factory, Action<IApplicationBuilder> configureApp) : base(factory)
Startup\StartupBase.cs (10)
20IServiceProvider IStartup.ConfigureServices(IServiceCollection services) 27/// Register services into the <see cref="IServiceCollection" />. 29/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 30public virtual void ConfigureServices(IServiceCollection services) 35/// Creates an <see cref="IServiceProvider" /> instance for a given <see cref="ConfigureServices(IServiceCollection)" />. 37/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 39public virtual IServiceProvider CreateServiceProvider(IServiceCollection services) 63/// Creates an <see cref="IServiceProvider" /> instance for a given <see cref="IServiceCollection" />. 65/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 67public override IServiceProvider CreateServiceProvider(IServiceCollection services)
WebHostBuilder.cs (12)
33private Action<WebHostBuilderContext, IServiceCollection>? _configureServices; 92/// <param name="configureServices">A delegate for configuring the <see cref="IServiceCollection"/>.</param> 94public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 105/// <param name="configureServices">A delegate for configuring the <see cref="IServiceCollection"/>.</param> 107public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) 139var hostingServices = BuildCommonServices(out var hostingStartupErrors); 140var applicationServices = hostingServices.Clone(); 200static IServiceProvider GetProviderFromFactory(IServiceCollection collection) 203var factory = provider.GetService<IServiceProviderFactory<IServiceCollection>>(); 218private IServiceCollection BuildCommonServices(out AggregateException? hostingStartupErrors) 302services.AddTransient<IServiceProviderFactory<IServiceCollection>, DefaultServiceProviderFactory>(); 350private static void AddApplicationServices(IServiceCollection services, IServiceProvider hostingServiceProvider)
WebHostBuilderExtensions.cs (3)
49return new DelegateStartup(sp.GetRequiredService<IServiceProviderFactory<IServiceCollection>>(), configureApp); 78return new DelegateStartup(sp.GetRequiredService<IServiceProviderFactory<IServiceCollection>>(), (app => configureApp(context, app))); 205services.Replace(ServiceDescriptor.Singleton<IServiceProviderFactory<IServiceCollection>>(new DefaultServiceProviderFactory(options)));
Microsoft.AspNetCore.Hosting.Abstractions (9)
IStartup.cs (3)
15/// Register services into the <see cref="IServiceCollection" />. 17/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 18IServiceProvider ConfigureServices(IServiceCollection services);
IStartupConfigureServicesFilter.cs (2)
20Action<IServiceCollection> ConfigureServices(Action<IServiceCollection> next);
IWebHostBuilder.cs (4)
37/// <param name="configureServices">A delegate for configuring the <see cref="IServiceCollection"/>.</param> 39IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices); 45/// <param name="configureServices">A delegate for configuring the <see cref="IServiceCollection"/>.</param> 47IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices);
Microsoft.AspNetCore.Http (9)
HttpServiceCollectionExtensions.cs (3)
17/// <param name="services">The <see cref="IServiceCollection"/>.</param> 19public static IServiceCollection AddHttpContextAccessor(this IServiceCollection services)
Timeouts\RequestTimeoutsIServiceCollectionExtensions.cs (6)
17/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 19public static IServiceCollection AddRequestTimeouts(this IServiceCollection services) 28/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 31public static IServiceCollection AddRequestTimeouts(this IServiceCollection services, Action<RequestTimeoutOptions> configure)
Microsoft.AspNetCore.Http.Connections (11)
ConnectionsDependencyInjectionExtensions.cs (11)
12/// Extension methods for <see cref="IServiceCollection"/>. 17/// Adds required services for ASP.NET Core Connection Handlers to the specified <see cref="IServiceCollection" />. 19/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 20/// <returns>The same instance of the <see cref="IServiceCollection"/> for chaining.</returns> 21public static IServiceCollection AddConnections(this IServiceCollection services) 33/// Adds required services for ASP.NET Core Connection Handlers to the specified <see cref="IServiceCollection" />. 35/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 37/// <returns>The same instance of the <see cref="IServiceCollection"/> for chaining.</returns> 38public static IServiceCollection AddConnections(this IServiceCollection services, Action<ConnectionOptions> options)
Microsoft.AspNetCore.Http.Extensions (13)
HttpJsonServiceExtensions.cs (4)
19/// <param name="services">The <see cref="IServiceCollection" /> to configure options on.</param> 22/// <returns>The modified <see cref="IServiceCollection"/>.</returns> 23public static IServiceCollection ConfigureHttpJsonOptions(this IServiceCollection services, Action<JsonOptions> configureOptions)
ProblemDetailsServiceCollectionExtensions.cs (9)
13/// Contains extension methods to <see cref="IServiceCollection"/>. 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 AddProblemDetails(this IServiceCollection services) 31/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 33/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 34public static IServiceCollection AddProblemDetails( 35this IServiceCollection services,
Microsoft.AspNetCore.HttpLogging (13)
HttpLoggingBuilderExtensions.cs (2)
53nameof(IServiceCollection), 65nameof(IServiceCollection),
HttpLoggingServicesExtensions.cs (11)
19/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 21public static IServiceCollection AddHttpLogging(this IServiceCollection services) 34/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 37public static IServiceCollection AddHttpLogging(this IServiceCollection services, Action<HttpLoggingOptions> configureOptions) 53public static IServiceCollection AddHttpLoggingInterceptor<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T> 54(this IServiceCollection services) where T : class, IHttpLoggingInterceptor 63/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 66public static IServiceCollection AddW3CLogging(this IServiceCollection services, Action<W3CLoggerOptions> configureOptions)
Microsoft.AspNetCore.HttpOverrides (5)
CertificateForwardingServiceExtensions.cs (5)
14/// Adds certificate forwarding to the specified <see cref="IServiceCollection" />. 16/// <param name="services">The <see cref="IServiceCollection"/>.</param> 18/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 19public static IServiceCollection AddCertificateForwarding( 20this IServiceCollection services,
Microsoft.AspNetCore.HttpsPolicy (6)
HstsServicesExtensions.cs (3)
17/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 20public static IServiceCollection AddHsts(this IServiceCollection services, Action<HstsOptions> configureOptions)
HttpsRedirectionServicesExtensions.cs (3)
17/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 20public static IServiceCollection AddHttpsRedirection(this IServiceCollection services, Action<HttpsRedirectionOptions> configureOptions)
Microsoft.AspNetCore.Identity (16)
IdentityServiceCollectionExtensions.cs (11)
19/// Contains extension methods to <see cref="IServiceCollection"/> for configuring identity services. 32this IServiceCollection services) 47this IServiceCollection services, 124/// <param name="services">The <see cref="IServiceCollection"/>.</param> 126public static IdentityBuilder AddIdentityApiEndpoints<TUser>(this IServiceCollection services) 134/// <param name="services">The <see cref="IServiceCollection"/>.</param> 137public static IdentityBuilder AddIdentityApiEndpoints<TUser>(this IServiceCollection services, Action<IdentityOptions> configure) 163public static IServiceCollection ConfigureApplicationCookie(this IServiceCollection services, Action<CookieAuthenticationOptions> configure) 172public static IServiceCollection ConfigureExternalCookie(this IServiceCollection services, Action<CookieAuthenticationOptions> configure)
PasskeyEndpointsEndpointRouteBuilderExtensions.cs (1)
42/// <see cref="PasskeyEndpointsServiceCollectionExtensions.AddPasskeyEndpoints(IServiceCollection, Action{PasskeyEndpointsOptions})"/>.
PasskeyEndpointsServiceCollectionExtensions.cs (4)
19/// <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> 58public static IServiceCollection AddPasskeyEndpoints(this IServiceCollection services, Action<PasskeyEndpointsOptions> configure)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityEntityFrameworkBuilderExtensions.cs (1)
29private static void AddStores(IServiceCollection services, Type userType, Type? roleType, Type contextType)
Microsoft.AspNetCore.Identity.UI (5)
IdentityServiceCollectionUIExtensions.cs (5)
9/// Default UI extensions to <see cref="IServiceCollection"/>. 22/// <param name="services">The <see cref="IServiceCollection"/>.</param> 24public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services) where TUser : class 36/// <param name="services">The <see cref="IServiceCollection"/>.</param> 39public static IdentityBuilder AddDefaultIdentity<TUser>(this IServiceCollection services, Action<IdentityOptions> configureOptions) where TUser : class
Microsoft.AspNetCore.InternalTesting (1)
LoggedTest\LoggedTestBase.cs (1)
45public void AddTestLogging(IServiceCollection services) => services.AddSingleton(LoggerFactory);
Microsoft.AspNetCore.Localization (8)
RequestLocalizationServiceCollectionExtensions.cs (8)
16/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 18/// <returns>The <see cref="IServiceCollection"/>.</returns> 19public static IServiceCollection AddRequestLocalization(this IServiceCollection services, Action<RequestLocalizationOptions> configureOptions) 30/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 32/// <returns>The <see cref="IServiceCollection"/>.</returns> 33public static IServiceCollection AddRequestLocalization<TService>(this IServiceCollection services, Action<RequestLocalizationOptions, TService> configureOptions) where TService : class
Microsoft.AspNetCore.MiddlewareAnalysis (6)
AnalysisServiceCollectionExtensions.cs (6)
11/// Extension methods for setting up diagnostic services in an <see cref="IServiceCollection" />. 16/// Adds diagnostic services to the specified <see cref="IServiceCollection" /> by logging to 19/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 20/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 21public static IServiceCollection AddMiddlewareAnalysis(this IServiceCollection services)
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)
DependencyInjection\EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs (3)
20/// <param name="services">The <see cref="IServiceCollection"/>.</param> 21public static IServiceCollection AddEndpointsApiExplorer(this IServiceCollection services)
DependencyInjection\MvcApiExplorerMvcCoreBuilderExtensions.cs (1)
33internal static void AddApiExplorerServices(IServiceCollection services)
Microsoft.AspNetCore.Mvc.Core (35)
ApiBehaviorOptions.cs (1)
43/// Parameters that are complex (<see cref="ModelMetadata.IsComplexType"/>) and are registered in the DI Container (<see cref="IServiceCollection"/>) are assumed to be bound from the services <see cref="BindingSource.Services"/>, unless this
Builder\ControllerEndpointRouteBuilderExtensions.cs (1)
522nameof(IServiceCollection),
Builder\MvcApplicationBuilderExtensions.cs (1)
124nameof(IServiceCollection),
DependencyInjection\IMvcBuilder.cs (2)
14/// Gets the <see cref="IServiceCollection"/> where MVC services are configured. 16IServiceCollection Services { get; }
DependencyInjection\IMvcCoreBuilder.cs (2)
14/// Gets the <see cref="IServiceCollection"/> where essential MVC services are configured. 16IServiceCollection Services { get; }
DependencyInjection\MvcBuilder.cs (3)
16/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 18public MvcBuilder(IServiceCollection services, ApplicationPartManager manager) 28public IServiceCollection Services { get; }
DependencyInjection\MvcCoreBuilder.cs (3)
16/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 19IServiceCollection services, 33public IServiceCollection Services { get; }
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (1)
115/// Registers discovered controllers as services in the <see cref="IServiceCollection"/>.
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (3)
87internal static void AddFormatterMappingsServices(IServiceCollection services) 124internal static void AddAuthorizationServices(IServiceCollection services) 134/// Registers discovered controllers as services in the <see cref="IServiceCollection"/>.
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (17)
27/// Extension methods for setting up essential MVC services in an <see cref="IServiceCollection" />. 32/// Adds the minimum essential MVC services to the specified <see cref="IServiceCollection" />. Additional services 36/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 39/// The <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/> approach for configuring 41/// registered. <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/> will register 44/// <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>. Additional configuration using the 47public static IMvcCoreBuilder AddMvcCore(this IServiceCollection services) 72private static ApplicationPartManager GetApplicationPartManager(IServiceCollection services, IWebHostEnvironment? environment) 91private static T? GetServiceFromCollection<T>(IServiceCollection services) 99/// Adds the minimum essential MVC services to the specified <see cref="IServiceCollection" />. Additional services 103/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 107/// The <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/> approach for configuring 109/// registered. <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/> will register 112/// <see cref="MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection)"/>. Additional configuration using the 116this IServiceCollection services, 129internal static void AddMvcCoreServices(IServiceCollection services) 280private static void ConfigureDefaultServices(IServiceCollection services)
DependencyInjection\MvcMarkerService.cs (1)
8/// to the <see cref="IServiceCollection"/> before MVC is configured.
Microsoft.AspNetCore.Mvc.Cors (1)
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (1)
66internal static void AddCorsServices(IServiceCollection services)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
DataAnnotationsLocalizationServices.cs (1)
13IServiceCollection services,
DependencyInjection\MvcDataAnnotationsMvcCoreBuilderExtensions.cs (2)
59internal static void AddDataAnnotationsServices(IServiceCollection services) 68IServiceCollection services,
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
DependencyInjection\MvcXmlMvcBuilderExtensions.cs (2)
94internal static void AddXmlDataContractSerializerFormatterServices(IServiceCollection services) 101internal static void AddXmlSerializerFormatterServices(IServiceCollection services)
DependencyInjection\MvcXmlMvcCoreBuilderExtensions.cs (2)
95internal static void AddXmlDataContractSerializerFormatterServices(IServiceCollection services) 102internal static void AddXmlSerializerFormatterServices(IServiceCollection services)
Microsoft.AspNetCore.Mvc.Localization (2)
MvcLocalizationServices.cs (2)
14IServiceCollection services, 32IServiceCollection services,
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (1)
56internal static void AddServicesCore(IServiceCollection services)
Microsoft.AspNetCore.Mvc.Razor (2)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
118internal static void AddRazorViewEngineServices(IServiceCollection services)
DependencyInjection\TagHelpersAsServices.cs (1)
14public static void AddTagHelpersAsServices(ApplicationPartManager manager, IServiceCollection services)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (1)
59internal static void AddServices(IServiceCollection services)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (1)
368nameof(IServiceCollection),
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (1)
79internal static void AddRazorPagesServices(IServiceCollection services)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
DependencyInjection\TagHelperExtensions.cs (1)
61internal static void AddCacheTagHelperServices(IServiceCollection services)
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
77public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (4)
37/// Registers discovered view components as services in the <see cref="IServiceCollection"/>. 60/// in the <see cref="IServiceCollection"/>. 79/// <see cref="IServiceCollection"/>. 98/// <see cref="IServiceCollection"/>.
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (3)
45/// <see cref="IServiceCollection"/>. Also registers the default view services. 91/// <see cref="IServiceCollection"/>. Also registers the default view services. 130internal static void AddViewServices(IServiceCollection services)
PartialViewResult.cs (1)
69nameof(IServiceCollection),
ViewComponentResult.cs (1)
68nameof(IServiceCollection),
ViewResult.cs (1)
68nameof(IServiceCollection),
Microsoft.AspNetCore.OpenApi (22)
Extensions\OpenApiServiceCollectionExtensions.cs (21)
16/// OpenAPI-related methods for <see cref="IServiceCollection"/>. 21/// Adds OpenAPI services related to the given document name to the specified <see cref="IServiceCollection"/>. 23/// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param> 33public static IServiceCollection AddOpenApi(this IServiceCollection services, string documentName) 41/// Adds OpenAPI services related to the given document name to the specified <see cref="IServiceCollection"/> with the specified options. 43/// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param> 57public static IServiceCollection AddOpenApi(this IServiceCollection services, string documentName, Action<OpenApiOptions> configureOptions) 77/// Adds OpenAPI services related to the default document to the specified <see cref="IServiceCollection"/> with the specified options. 79/// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param> 92public static IServiceCollection AddOpenApi(this IServiceCollection services, Action<OpenApiOptions> configureOptions) 96/// Adds OpenAPI services related to the default document to the specified <see cref="IServiceCollection"/>. 98/// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param> 107public static IServiceCollection AddOpenApi(this IServiceCollection services) 111/// Adds the core OpenAPI services, not tied to a specific document name, to the specified <see cref="IServiceCollection"/> with the specified options. 113/// <param name="services">The <see cref="IServiceCollection"/> to register services onto.</param> 114public static IServiceCollection AddOpenApiCore(this IServiceCollection services)
Transformers\OpenApiDocumentTransformerContext.cs (1)
20/// <see cref="OpenApiServiceCollectionExtensions.AddOpenApi(IServiceCollection)">AddOpenApi</see> during service registration. The default document name is <c>"v1"</c>.
Microsoft.AspNetCore.OutputCaching (6)
OutputCacheServiceCollectionExtensions.cs (6)
21/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 23public static IServiceCollection AddOutputCache(this IServiceCollection services) 46/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 49public static IServiceCollection AddOutputCache(this IServiceCollection services, Action<OutputCacheOptions> configureOptions)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (6)
StackExchangeRedisCacheServiceCollectionExtensions.cs (6)
12/// Extension methods for setting up Redis output cache related services in an <see cref="IServiceCollection" />. 17/// Adds Redis output caching services to the specified <see cref="IServiceCollection" />. 19/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 22/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 23public static IServiceCollection AddStackExchangeRedisOutputCache(this IServiceCollection services, Action<RedisOutputCacheOptions> setupAction)
Microsoft.AspNetCore.RateLimiting (7)
RateLimiterApplicationBuilderExtensions.cs (1)
52nameof(IServiceCollection),
RateLimiterServiceCollectionExtensions.cs (6)
17/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 20public static IServiceCollection AddRateLimiter(this IServiceCollection services, Action<RateLimiterOptions> configureOptions) 33/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 35public static IServiceCollection AddRateLimiter(this IServiceCollection services)
Microsoft.AspNetCore.RequestDecompression (8)
RequestDecompressionServiceExtensions.cs (8)
17/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 18/// <returns>The <see cref="IServiceCollection"/>.</returns> 19public static IServiceCollection AddRequestDecompression(this IServiceCollection services) 30/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 32/// <returns>The <see cref="IServiceCollection"/>.</returns> 33public static IServiceCollection AddRequestDecompression(this IServiceCollection services, Action<RequestDecompressionOptions> configureOptions)
Microsoft.AspNetCore.ResponseCaching (6)
ResponseCachingServicesExtensions.cs (6)
18/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 20public static IServiceCollection AddResponseCaching(this IServiceCollection services) 32/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 35public static IServiceCollection AddResponseCaching(this IServiceCollection services, Action<ResponseCachingOptions> configureOptions)
Microsoft.AspNetCore.ResponseCompression (8)
ResponseCompressionServicesExtensions.cs (8)
18/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 19/// <returns>The <see cref="IServiceCollection"/>.</returns> 20public static IServiceCollection AddResponseCompression(this IServiceCollection services) 31/// <param name="services">The <see cref="IServiceCollection"/> for adding services.</param> 33/// <returns>The <see cref="IServiceCollection"/>.</returns> 34public static IServiceCollection AddResponseCompression(this IServiceCollection services, Action<ResponseCompressionOptions> configureOptions)
Microsoft.AspNetCore.Routing (20)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (1)
120nameof(IServiceCollection),
Builder\RoutingBuilderExtensions.cs (2)
28nameof(IServiceCollection), 51nameof(IServiceCollection),
DependencyInjection\RoutingServiceCollectionExtensions.cs (14)
19/// Contains extension methods to <see cref="IServiceCollection"/>. 26/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 27/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 28public static IServiceCollection AddRouting(this IServiceCollection services) 37/// <see cref="AddRouting(IServiceCollection)" /> except that it 40/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 41/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 42public static IServiceCollection AddRoutingCore(this IServiceCollection services) 126/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 128/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 129public static IServiceCollection AddRouting( 130this IServiceCollection services,
Internal\DfaGraphWriter.cs (1)
29/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
RouteBuilder.cs (1)
38nameof(IServiceCollection),
RoutingMarkerService.cs (1)
10/// to the <see cref="IServiceCollection"/> before routing is configured.
Microsoft.AspNetCore.Session (8)
SessionServiceCollectionExtensions.cs (8)
19/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 20/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 22public static IServiceCollection AddSession(this IServiceCollection services) 34/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 36/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 38public static IServiceCollection AddSession(this IServiceCollection services, Action<SessionOptions> configure)
Microsoft.AspNetCore.SignalR (7)
SignalRDependencyInjectionExtensions.cs (7)
12/// Extension methods for setting up SignalR services in an <see cref="IServiceCollection" />. 33/// Adds SignalR services to the specified <see cref="IServiceCollection" />. 35/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 37public static ISignalRServerBuilder AddSignalR(this IServiceCollection services) 51/// Adds SignalR services to the specified <see cref="IServiceCollection" />. 53/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 56public static ISignalRServerBuilder AddSignalR(this IServiceCollection services, Action<HubOptions> configure)
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnectionBuilder.cs (1)
22public IServiceCollection Services { get; }
Microsoft.AspNetCore.SignalR.Common (1)
ISignalRBuilder.cs (1)
20IServiceCollection Services { get; }
Microsoft.AspNetCore.SignalR.Core (7)
Internal\SignalRBuilder.cs (2)
10public SignalRServerBuilder(IServiceCollection services) 15public IServiceCollection Services { get; }
SignalRDependencyInjectionExtensions.cs (5)
12/// Extension methods for <see cref="IServiceCollection"/>. 17/// Adds the minimum essential SignalR services to the specified <see cref="IServiceCollection" />. Additional services 20/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 22public static ISignalRServerBuilder AddSignalRCore(this IServiceCollection services) 44static void AddTypedHubContext(IServiceCollection services)
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
34static void ConfigureOptions<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(IServiceCollection services, IConfigurationSection section)
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\SpaStaticFilesExtensions.cs (1)
24this IServiceCollection services,
Microsoft.AspNetCore.StaticFiles (4)
DirectoryBrowserServiceExtensions.cs (4)
14/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 15/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 16public static IServiceCollection AddDirectoryBrowser(this IServiceCollection services)
Microsoft.AspNetCore.TestHost (6)
WebHostBuilderExtensions.cs (6)
78/// <param name="servicesConfiguration">An <see cref="Action"/> that registers services onto the <see cref="IServiceCollection"/>.</param> 80public static IWebHostBuilder ConfigureTestServices(this IWebHostBuilder webHostBuilder, Action<IServiceCollection> servicesConfiguration) 215private readonly Action<IServiceCollection> _servicesConfiguration; 217public ConfigureTestServicesStartupConfigureServicesFilter(Action<IServiceCollection> servicesConfiguration) 224public Action<IServiceCollection> ConfigureServices(Action<IServiceCollection> next) =>
Microsoft.AspNetCore.Testing (1)
FakeStartup.cs (1)
18public void ConfigureServices(IServiceCollection _)
Microsoft.AspNetCore.Testing.Tests (1)
TestResources\Startup.cs (1)
21public void ConfigureServices(IServiceCollection _)
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\HostingStartup.cs (1)
27internal void ConfigureServices(IServiceCollection services, Uri providerAddress)
Microsoft.AspNetCore.WebSockets (4)
WebSocketsDependencyInjectionExtensions.cs (4)
10/// Extension method for <see cref="IServiceCollection"/> to add WebSockets configuration. 15/// Extension method for <see cref="IServiceCollection"/> to add WebSockets configuration. 20public static IServiceCollection AddWebSockets(this IServiceCollection services, Action<WebSocketOptions> configure)
Microsoft.Authentication.WebAssembly.Msal (11)
MsalWebAssemblyServiceCollectionExtensions.cs (11)
23/// <param name="services">The <see cref="IServiceCollection"/>.</param> 25/// <returns>The <see cref="IServiceCollection"/>.</returns> 26public static IRemoteAuthenticationBuilder<RemoteAuthenticationState, RemoteUserAccount> AddMsalAuthentication(this IServiceCollection services, Action<RemoteAuthenticationOptions<MsalProviderOptions>> configure) 35/// <param name="services">The <see cref="IServiceCollection"/>.</param> 37/// <returns>The <see cref="IServiceCollection"/>.</returns> 40this IServiceCollection services, Action<RemoteAuthenticationOptions<MsalProviderOptions>> configure) 51/// <param name="services">The <see cref="IServiceCollection"/>.</param> 53/// <returns>The <see cref="IServiceCollection"/>.</returns> 56this IServiceCollection services, Action<RemoteAuthenticationOptions<MsalProviderOptions>> configure) 72public MsalRemoteAuthenticationBuilder(IServiceCollection services) => Services = services; 74public IServiceCollection Services { get; }
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
175public override void ConfigureServices(IServiceCollection collection)
Microsoft.Extensions.AI (65)
ChatCompletion\ChatClientBuilderServiceCollectionExtensions.cs (13)
10/// <summary>Provides extension methods for registering <see cref="IChatClient"/> with a <see cref="IServiceCollection"/>.</summary> 13/// <summary>Registers a singleton <see cref="IChatClient"/> in the <see cref="IServiceCollection"/>.</summary> 14/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 22this IServiceCollection serviceCollection, 32/// <summary>Registers a singleton <see cref="IChatClient"/> in the <see cref="IServiceCollection"/>.</summary> 33/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 41this IServiceCollection serviceCollection, 53/// <summary>Registers a keyed singleton <see cref="IChatClient"/> in the <see cref="IServiceCollection"/>.</summary> 54/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 63this IServiceCollection serviceCollection, 74/// <summary>Registers a keyed singleton <see cref="IChatClient"/> in the <see cref="IServiceCollection"/>.</summary> 75/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 84this IServiceCollection serviceCollection,
Embeddings\EmbeddingGeneratorBuilderServiceCollectionExtensions.cs (13)
10/// <summary>Provides extension methods for registering <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> with a <see cref="IServiceCollection"/>.</summary> 13/// <summary>Registers a singleton embedding generator in the <see cref="IServiceCollection"/>.</summary> 16/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 24this IServiceCollection serviceCollection, 35/// <summary>Registers a singleton embedding generator in the <see cref="IServiceCollection"/>.</summary> 38/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 46this IServiceCollection serviceCollection, 61/// <summary>Registers a keyed singleton embedding generator in the <see cref="IServiceCollection"/>.</summary> 64/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 73this IServiceCollection serviceCollection, 85/// <summary>Registers a keyed singleton embedding generator in the <see cref="IServiceCollection"/>.</summary> 88/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 97this IServiceCollection serviceCollection,
Image\ImageGeneratorBuilderServiceCollectionExtensions.cs (13)
12/// <summary>Provides extension methods for registering <see cref="IImageGenerator"/> with a <see cref="IServiceCollection"/>.</summary> 16/// <summary>Registers a singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary> 17/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 24this IServiceCollection serviceCollection, 29/// <summary>Registers a singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary> 30/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 37this IServiceCollection serviceCollection, 49/// <summary>Registers a keyed singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary> 50/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 58this IServiceCollection serviceCollection, 64/// <summary>Registers a keyed singleton <see cref="IImageGenerator"/> in the <see cref="IServiceCollection"/>.</summary> 65/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param> 73this IServiceCollection serviceCollection,
SpeechToText\SpeechToTextClientBuilderServiceCollectionExtensions.cs (13)
12/// <summary>Provides extension methods for registering <see cref="ISpeechToTextClient"/> with a <see cref="IServiceCollection"/>.</summary> 16/// <summary>Registers a singleton <see cref="ISpeechToTextClient"/> in the <see cref="IServiceCollection"/>.</summary> 17/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 23this IServiceCollection serviceCollection, 28/// <summary>Registers a singleton <see cref="ISpeechToTextClient"/> in the <see cref="IServiceCollection"/>.</summary> 29/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 35this IServiceCollection serviceCollection, 47/// <summary>Registers a keyed singleton <see cref="ISpeechToTextClient"/> in the <see cref="IServiceCollection"/>.</summary> 48/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 55this IServiceCollection serviceCollection, 61/// <summary>Registers a keyed singleton <see cref="ISpeechToTextClient"/> in the <see cref="IServiceCollection"/>.</summary> 62/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 69this IServiceCollection serviceCollection,
TextToSpeech\TextToSpeechClientBuilderServiceCollectionExtensions.cs (13)
12/// <summary>Provides extension methods for registering <see cref="ITextToSpeechClient"/> with a <see cref="IServiceCollection"/>.</summary> 16/// <summary>Registers a singleton <see cref="ITextToSpeechClient"/> in the <see cref="IServiceCollection"/>.</summary> 17/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 23this IServiceCollection serviceCollection, 32/// <summary>Registers a singleton <see cref="ITextToSpeechClient"/> in the <see cref="IServiceCollection"/>.</summary> 33/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 39this IServiceCollection serviceCollection, 51/// <summary>Registers a keyed singleton <see cref="ITextToSpeechClient"/> in the <see cref="IServiceCollection"/>.</summary> 52/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 59this IServiceCollection serviceCollection, 69/// <summary>Registers a keyed singleton <see cref="ITextToSpeechClient"/> in the <see cref="IServiceCollection"/>.</summary> 70/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the client should be added.</param> 77this IServiceCollection serviceCollection,
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\DependencyInjectionPatterns.cs (1)
12private IServiceCollection ServiceCollection { get; } = new ServiceCollection();
Image\ImageGeneratorDependencyInjectionPatterns.cs (1)
12private IServiceCollection ServiceCollection { get; } = new ServiceCollection();
SpeechToText\SpeechToTextClientDependencyInjectionPatterns.cs (1)
12private IServiceCollection ServiceCollection { get; } = new ServiceCollection();
TextToSpeech\TextToSpeechClientDependencyInjectionPatterns.cs (1)
12private IServiceCollection ServiceCollection { get; } = new ServiceCollection();
Microsoft.Extensions.AmbientMetadata.Application (4)
ApplicationMetadataServiceCollectionExtensions.cs (4)
23public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, IConfigurationSection section) 40public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, Action<ApplicationMetadata> configure)
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataExtensionsTests.cs (2)
38Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddApplicationMetadata(config.GetSection(string.Empty))); 39Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddApplicationMetadata(_ => { }));
Microsoft.Extensions.AmbientMetadata.Build (10)
BuildMetadataServiceCollectionExtensions.cs (10)
17/// Adds an instance of <see cref="BuildMetadata"/> to the <see cref="IServiceCollection"/>. 19/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 21/// <returns>The <see cref="IServiceCollection"/> for call chaining.</returns> 23public static IServiceCollection AddBuildMetadata(this IServiceCollection services, IConfigurationSection section) 36/// Adds an instance of <see cref="BuildMetadata"/> to the <see cref="IServiceCollection"/>. 38/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 40/// <returns>The <see cref="IServiceCollection"/> for call chaining.</returns> 42public static IServiceCollection AddBuildMetadata(this IServiceCollection services, Action<BuildMetadata> configure)
Microsoft.Extensions.AmbientMetadata.Build.Tests (2)
BuildMetadataServiceCollectionExtensionsTests.cs (2)
22serviceCollection.Invoking(x => ((IServiceCollection)null!).AddBuildMetadata(config.GetSection(string.Empty))) 28serviceCollection.Invoking(x => ((IServiceCollection)null!).AddBuildMetadata(_ => { }))
Microsoft.Extensions.AsyncState (2)
AsyncStateExtensions.cs (2)
23public static IServiceCollection AddAsyncState(this IServiceCollection services)
Microsoft.Extensions.Caching.Hybrid (18)
HybridCacheServiceExtensions.cs (14)
21/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 24public static IHybridCacheBuilder AddHybridCache(this IServiceCollection services, Action<HybridCacheOptions> setupAction) 37/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 39public static IHybridCacheBuilder AddHybridCache(this IServiceCollection services) 52/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 56public static IHybridCacheBuilder AddKeyedHybridCache(this IServiceCollection services, object? serviceKey, Action<HybridCacheOptions> setupAction) => 62/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 67public static IHybridCacheBuilder AddKeyedHybridCache(this IServiceCollection services, object? serviceKey, string optionsName, Action<HybridCacheOptions> setupAction) 80/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 83public static IHybridCacheBuilder AddKeyedHybridCache(this IServiceCollection services, object? serviceKey) => 89/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 93public static IHybridCacheBuilder AddKeyedHybridCache(this IServiceCollection services, object? serviceKey, string optionsName) 114/// <param name="services">The <see cref="IServiceCollection"/> to prepare with <see cref="HybridCache"/> prerequisites.</param> 116private static HybridCacheBuilder PrepareServices(IServiceCollection services)
IHybridCacheBuilder.cs (1)
16IServiceCollection Services { get; }
Internal\DefaultHybridCache.cs (1)
22/// The inbuilt implementation of <see cref="HybridCache"/>, as registered via <see cref="HybridCacheServiceExtensions.AddHybridCache(IServiceCollection)"/>.
Internal\HybridCacheBuilder.cs (2)
10public HybridCacheBuilder(IServiceCollection services) 15public IServiceCollection Services { get; }
Microsoft.Extensions.Caching.Hybrid.Tests (4)
DistributedCacheTests.cs (2)
26protected abstract ValueTask ConfigureAsync(IServiceCollection services); 42private async ValueTask<IServiceCollection> InitAsync()
RedisTests.cs (1)
23protected override async ValueTask ConfigureAsync(IServiceCollection services)
SqlServerTests.cs (1)
20protected override async ValueTask ConfigureAsync(IServiceCollection services)
Microsoft.Extensions.Caching.Memory (23)
MemoryCacheServiceCollectionExtensions.cs (23)
12/// Extension methods for setting up memory cache related services in an <see cref="IServiceCollection" />. 18/// <see cref="IServiceCollection" />. 20/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 21/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 22public static IServiceCollection AddMemoryCache(this IServiceCollection services) 34/// <see cref="IServiceCollection" />. 36/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 40/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 41public static IServiceCollection AddMemoryCache(this IServiceCollection services, Action<MemoryCacheOptions> setupAction) 54/// to the <see cref="IServiceCollection" />. Frameworks that require a distributed cache to work 59/// <see cref="AddDistributedMemoryCache(IServiceCollection)"/> should only be used in single 64/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 65/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 66public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services) 78/// to the <see cref="IServiceCollection" />. Frameworks that require a distributed cache to work 83/// <see cref="AddDistributedMemoryCache(IServiceCollection)"/> should only be used in single 88/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 92/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 93public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services, Action<MemoryDistributedCacheOptions> setupAction)
Microsoft.Extensions.Caching.SqlServer (7)
SqlServerCachingServicesExtensions.cs (7)
12/// Extension methods for setting up Microsoft SQL Server distributed cache services in an <see cref="IServiceCollection" />. 17/// Adds Microsoft SQL Server distributed caching services to the specified <see cref="IServiceCollection" />. 19/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 21/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 22public static IServiceCollection AddDistributedSqlServerCache(this IServiceCollection services, Action<SqlServerCacheOptions> setupAction) 35internal static void AddSqlServerCacheServices(IServiceCollection services)
Microsoft.Extensions.Caching.StackExchangeRedis (6)
StackExchangeRedisCacheServiceCollectionExtensions.cs (6)
13/// Extension methods for setting up Redis distributed cache related services in an <see cref="IServiceCollection" />. 18/// Adds Redis distributed caching services to the specified <see cref="IServiceCollection" />. 20/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 23/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 24public static IServiceCollection AddStackExchangeRedisCache(this IServiceCollection services, Action<RedisCacheOptions> setupAction)
Microsoft.Extensions.Compliance.Abstractions (1)
Redaction\IRedactionBuilder.cs (1)
19IServiceCollection Services { get; }
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Classification\DataClassificationTypeConverterTests.cs (1)
45IServiceCollection serviceCollection = new ServiceCollection()
Microsoft.Extensions.Compliance.Redaction (10)
RedactionBuilder.cs (2)
19public IServiceCollection Services { get; } 25public RedactionBuilder(IServiceCollection services)
RedactionServiceCollectionExtensions.cs (8)
17/// Registers an implementation of <see cref="IRedactorProvider"/> in the <see cref="IServiceCollection"/>. 19/// <param name="services">Instance of <see cref="IServiceCollection"/> used to configure redaction.</param> 22public static IServiceCollection AddRedaction(this IServiceCollection services) 26/// Registers an implementation of <see cref="IRedactorProvider"/> in the <see cref="IServiceCollection"/> and configures available redactors. 28/// <param name="services">Instance of <see cref="IServiceCollection"/> used to configure redaction.</param> 33public static IServiceCollection AddRedaction(this IServiceCollection services, Action<IRedactionBuilder> configure)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
RedactionAcceptanceTests.cs (1)
56Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddRedaction(_ => { }));
Microsoft.Extensions.Compliance.Testing (4)
FakeRedactionServiceCollectionExtensions.cs (4)
24public static IServiceCollection AddFakeRedaction(this IServiceCollection services) 49public static IServiceCollection AddFakeRedaction(this IServiceCollection services, Action<FakeRedactorOptions> configure)
Microsoft.Extensions.Compliance.Testing.Tests (3)
RedactionFakesAcceptanceTests.cs (3)
236Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddRedaction(x => x.SetFakeRedactor((Action<FakeRedactorOptions>)null!, dc))); 237Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddFakeRedaction()); 238Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddFakeRedaction(_ => { }));
Microsoft.Extensions.DependencyInjection (15)
DefaultServiceProviderFactory.cs (4)
11public class DefaultServiceProviderFactory : IServiceProviderFactory<IServiceCollection> 35public IServiceCollection CreateBuilder(IServiceCollection services) 41public IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder)
ServiceCollectionContainerBuilderExtensions.cs (10)
9/// Extension methods for building a <see cref="ServiceProvider"/> from an <see cref="IServiceCollection"/>. 14/// Creates a <see cref="ServiceProvider"/> containing services from the provided <see cref="IServiceCollection"/>. 16/// <param name="services">The <see cref="IServiceCollection"/> containing service descriptors.</param> 18public static ServiceProvider BuildServiceProvider(this IServiceCollection services) 24/// Creates a <see cref="ServiceProvider"/> containing services from the provided <see cref="IServiceCollection"/> 27/// <param name="services">The <see cref="IServiceCollection"/> containing service descriptors.</param> 32public static ServiceProvider BuildServiceProvider(this IServiceCollection services, bool validateScopes) 38/// Creates a <see cref="ServiceProvider"/> containing services from the provided <see cref="IServiceCollection"/> 41/// <param name="services">The <see cref="IServiceCollection"/> containing service descriptors.</param> 46public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options)
ServiceProviderOptions.cs (1)
22/// Gets or sets a value that indicates whether validation is performed to ensure all services can be created when <see cref="ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection, ServiceProviderOptions)" /> is called.
Microsoft.Extensions.DependencyInjection.Abstractions (406)
Extensions\ServiceCollectionDescriptorExtensions.cs (95)
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> 105/// <seealso cref="ServiceCollectionServiceExtensions.AddTransient(IServiceCollection, Type)"/> 107this IServiceCollection collection, 122/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 125/// <seealso cref="ServiceCollectionServiceExtensions.AddTransient(IServiceCollection, Type, Type)"/> 127this IServiceCollection collection, 144/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 147/// <seealso cref="ServiceCollectionServiceExtensions.AddTransient(IServiceCollection, Type, Func{IServiceProvider, object})"/> 149this IServiceCollection collection, 166/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 167/// <seealso cref="ServiceCollectionServiceExtensions.AddTransient{TService}(IServiceCollection)"/> 168public static void TryAddTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection) 183/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 184/// <seealso cref="ServiceCollectionServiceExtensions.AddTransient{TService, TImplementation}(IServiceCollection)"/> 185public static void TryAddTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection) 200/// <param name="services">The <see cref="IServiceCollection"/>.</param> 202/// <seealso cref="ServiceCollectionServiceExtensions.AddTransient{TService}(IServiceCollection, Func{IServiceProvider, TService})"/> 204this IServiceCollection services, 215/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 217/// <seealso cref="ServiceCollectionServiceExtensions.AddScoped(IServiceCollection, Type)"/> 219this IServiceCollection collection, 234/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 237/// <seealso cref="ServiceCollectionServiceExtensions.AddScoped(IServiceCollection, Type, Type)"/> 239this IServiceCollection collection, 256/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 259/// <seealso cref="ServiceCollectionServiceExtensions.AddScoped(IServiceCollection, Type, Func{IServiceProvider, object})"/> 261this IServiceCollection collection, 278/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 279/// <seealso cref="ServiceCollectionServiceExtensions.AddScoped{TService}(IServiceCollection)"/> 280public static void TryAddScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection) 295/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 296/// <seealso cref="ServiceCollectionServiceExtensions.AddScoped{TService, TImplementation}(IServiceCollection)"/> 297public static void TryAddScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection) 312/// <param name="services">The <see cref="IServiceCollection"/>.</param> 314/// <seealso cref="ServiceCollectionServiceExtensions.AddScoped{TService}(IServiceCollection, Func{IServiceProvider, TService})"/> 316this IServiceCollection services, 327/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 329/// <seealso cref="ServiceCollectionServiceExtensions.AddSingleton(IServiceCollection, Type)"/> 331this IServiceCollection collection, 346/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 349/// <seealso cref="ServiceCollectionServiceExtensions.AddSingleton(IServiceCollection, Type, Type)"/> 351this IServiceCollection collection, 368/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 371/// <seealso cref="ServiceCollectionServiceExtensions.AddSingleton(IServiceCollection, Type, Func{IServiceProvider, object})"/> 373this IServiceCollection collection, 390/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 391/// <seealso cref="ServiceCollectionServiceExtensions.AddSingleton{TService}(IServiceCollection)"/> 392public static void TryAddSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection) 407/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 408/// <seealso cref="ServiceCollectionServiceExtensions.AddSingleton{TService, TImplementation}(IServiceCollection)"/> 409public static void TryAddSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection) 424/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 426/// <seealso cref="ServiceCollectionServiceExtensions.AddSingleton{TService}(IServiceCollection, TService)"/> 427public static void TryAddSingleton<TService>(this IServiceCollection collection, TService instance) 443/// <param name="services">The <see cref="IServiceCollection"/>.</param> 445/// <seealso cref="ServiceCollectionServiceExtensions.AddSingleton{TService}(IServiceCollection, Func{IServiceProvider, TService})"/> 447this IServiceCollection services, 459/// <param name="services">The <see cref="IServiceCollection"/>.</param> 462/// Use <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> when registering a service implementation of a 465/// <see cref="Add(IServiceCollection, ServiceDescriptor)"/> is not idempotent and can add 468/// <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> will prevent registration 472this IServiceCollection services, 511/// <param name="services">The <see cref="IServiceCollection"/>.</param> 514/// Use <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> when registering a service 517/// <see cref="Add(IServiceCollection, ServiceDescriptor)"/> is not idempotent and can add 520/// <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> will prevent registration 524this IServiceCollection services, 537/// Removes the first service in <see cref="IServiceCollection"/> with the same service type 540/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 542/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns> 543public static IServiceCollection Replace( 544this IServiceCollection collection, 566/// Removes all services of type <typeparamref name="T"/> in <see cref="IServiceCollection"/>. 568/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 569/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns> 570public static IServiceCollection RemoveAll<T>(this IServiceCollection collection) 576/// Removes all services of type <paramref name="serviceType"/> in <see cref="IServiceCollection"/>. 578/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 580/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns> 581public static IServiceCollection RemoveAll(this IServiceCollection collection, Type serviceType)
Extensions\ServiceCollectionDescriptorExtensions.Keyed.cs (67)
16/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 19/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedTransient(IServiceCollection, Type, object)"/> 21this IServiceCollection collection, 37/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 41/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedTransient(IServiceCollection, Type, object, Type)"/> 43this IServiceCollection collection, 61/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 65/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedTransient(IServiceCollection, Type, object, Func{IServiceProvider, object, object})"/> 67this IServiceCollection collection, 85/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 87/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedTransient{TService}(IServiceCollection, object)"/> 88public static void TryAddKeyedTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection, object? serviceKey) 103/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 105/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedTransient{TService, TImplementation}(IServiceCollection, object)"/> 106public static void TryAddKeyedTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection, object? serviceKey) 121/// <param name="services">The <see cref="IServiceCollection"/>.</param> 124/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedTransient{TService}(IServiceCollection, object, Func{IServiceProvider, object, TService})"/> 126this IServiceCollection services, 138/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 141/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedScoped(IServiceCollection, Type, object)"/> 143this IServiceCollection collection, 159/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 163/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedScoped(IServiceCollection, Type, object, Type)"/> 165this IServiceCollection collection, 183/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 187/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedScoped(IServiceCollection, Type, object, Func{IServiceProvider, object, object})"/> 189this IServiceCollection collection, 207/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 209/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedScoped{TService}(IServiceCollection, object)"/> 210public static void TryAddKeyedScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection, object? serviceKey) 225/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 227/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedScoped{TService, TImplementation}(IServiceCollection, object)"/> 228public static void TryAddKeyedScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection, object? serviceKey) 243/// <param name="services">The <see cref="IServiceCollection"/>.</param> 246/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedScoped{TService}(IServiceCollection, object, Func{IServiceProvider, object, TService})"/> 248this IServiceCollection services, 260/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 263/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton(IServiceCollection, Type, object)"/> 265this IServiceCollection collection, 281/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 285/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton(IServiceCollection, Type, object, Type)"/> 287this IServiceCollection collection, 305/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 309/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton(IServiceCollection, Type, object, Func{IServiceProvider, object, object})"/> 311this IServiceCollection collection, 329/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 331/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton{TService}(IServiceCollection, object)"/> 332public static void TryAddKeyedSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection collection, object? serviceKey) 347/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 349/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton{TService, TImplementation}(IServiceCollection, object)"/> 350public static void TryAddKeyedSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection collection, object? serviceKey) 365/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 368/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton{TService}(IServiceCollection, object, TService)"/> 369public static void TryAddKeyedSingleton<TService>(this IServiceCollection collection, object? serviceKey, TService instance) 385/// <param name="services">The <see cref="IServiceCollection"/>.</param> 388/// <seealso cref="ServiceCollectionServiceExtensions.AddKeyedSingleton{TService}(IServiceCollection, object, Func{IServiceProvider, object, TService})"/> 390this IServiceCollection services, 399/// Removes all services of type <typeparamref name="T"/> in <see cref="IServiceCollection"/>. 401/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 403/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns> 404public static IServiceCollection RemoveAllKeyed<T>(this IServiceCollection collection, object? serviceKey) 410/// Removes all services of type <paramref name="serviceType"/> in <see cref="IServiceCollection"/>. 412/// <param name="collection">The <see cref="IServiceCollection"/>.</param> 415/// <returns>The <see cref="IServiceCollection"/> for chaining.</returns> 416public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, Type serviceType, object? serviceKey)
IServiceProviderFactory.cs (2)
14/// Creates a container builder from an <see cref="IServiceCollection"/>. 18TContainerBuilder CreateBuilder(IServiceCollection services);
ServiceCollection.cs (1)
12/// Default implementation of <see cref="IServiceCollection"/>.
ServiceCollectionServiceExtensions.cs (120)
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> 24/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 29public static IServiceCollection AddTransient( 30this IServiceCollection services, 44/// specified <see cref="IServiceCollection"/>. 46/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 51/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 56public static IServiceCollection AddTransient( 57this IServiceCollection services, 71/// specified <see cref="IServiceCollection"/>. 75/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 78/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 83public static IServiceCollection AddTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services) 94/// specified <see cref="IServiceCollection"/>. 96/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 100/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 105public static IServiceCollection AddTransient( 106this IServiceCollection services, 117/// specified <see cref="IServiceCollection"/>. 120/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 123/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 128public static IServiceCollection AddTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services) 139/// specified <see cref="IServiceCollection"/>. 142/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 146/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 151public static IServiceCollection AddTransient<TService>( 152this IServiceCollection services, 166/// specified <see cref="IServiceCollection"/>. 170/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 174/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 179public static IServiceCollection AddTransient<TService, TImplementation>( 180this IServiceCollection services, 194/// specified <see cref="IServiceCollection"/>. 196/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 201/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 206public static IServiceCollection AddScoped( 207this IServiceCollection services, 221/// specified <see cref="IServiceCollection"/>. 223/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 228/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 233public static IServiceCollection AddScoped( 234this IServiceCollection services, 248/// specified <see cref="IServiceCollection"/>. 252/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 255/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 260public static IServiceCollection AddScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services) 271/// specified <see cref="IServiceCollection"/>. 273/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 277/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 282public static IServiceCollection AddScoped( 283this IServiceCollection services, 294/// specified <see cref="IServiceCollection"/>. 297/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 300/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 305public static IServiceCollection AddScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services) 316/// specified <see cref="IServiceCollection"/>. 319/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 323/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 328public static IServiceCollection AddScoped<TService>( 329this IServiceCollection services, 343/// specified <see cref="IServiceCollection"/>. 347/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 351/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 356public static IServiceCollection AddScoped<TService, TImplementation>( 357this IServiceCollection services, 372/// specified <see cref="IServiceCollection"/>. 374/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 379/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 384public static IServiceCollection AddSingleton( 385this IServiceCollection services, 399/// specified <see cref="IServiceCollection"/>. 401/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 406/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 411public static IServiceCollection AddSingleton( 412this IServiceCollection services, 426/// specified <see cref="IServiceCollection"/>. 430/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 433/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 438public static IServiceCollection AddSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services) 449/// specified <see cref="IServiceCollection"/>. 451/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 455/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 460public static IServiceCollection AddSingleton( 461this IServiceCollection services, 472/// specified <see cref="IServiceCollection"/>. 475/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 478/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 483public static IServiceCollection AddSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services) 494/// specified <see cref="IServiceCollection"/>. 497/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 501/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 506public static IServiceCollection AddSingleton<TService>( 507this IServiceCollection services, 521/// specified <see cref="IServiceCollection"/>. 525/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 529/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 534public static IServiceCollection AddSingleton<TService, TImplementation>( 535this IServiceCollection services, 549/// specified <see cref="IServiceCollection"/>. 551/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 556/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 561public static IServiceCollection AddSingleton( 562this IServiceCollection services, 578/// specified <see cref="IServiceCollection"/>. 580/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 584/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type has already been registered. 589public static IServiceCollection AddSingleton<TService>( 590this IServiceCollection services, 600private static IServiceCollection Add( 601IServiceCollection collection, 611private static IServiceCollection Add( 612IServiceCollection collection,
ServiceCollectionServiceExtensions.Keyed.cs (120)
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> 25/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 30public static IServiceCollection AddKeyedTransient( 31this IServiceCollection services, 46/// specified <see cref="IServiceCollection"/>. 48/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 54/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 59public static IServiceCollection AddKeyedTransient( 60this IServiceCollection services, 75/// specified <see cref="IServiceCollection"/>. 79/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 83/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 88public static IServiceCollection AddKeyedTransient<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>( 89this IServiceCollection services, 101/// specified <see cref="IServiceCollection"/>. 103/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 108/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 113public static IServiceCollection AddKeyedTransient( 114this IServiceCollection services, 126/// specified <see cref="IServiceCollection"/>. 129/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 133/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 138public static IServiceCollection AddKeyedTransient<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>( 139this IServiceCollection services, 151/// specified <see cref="IServiceCollection"/>. 154/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 159/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 164public static IServiceCollection AddKeyedTransient<TService>( 165this IServiceCollection services, 180/// specified <see cref="IServiceCollection"/>. 184/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 189/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 194public static IServiceCollection AddKeyedTransient<TService, TImplementation>( 195this IServiceCollection services, 210/// specified <see cref="IServiceCollection"/>. 212/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 218/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 223public static IServiceCollection AddKeyedScoped( 224this IServiceCollection services, 239/// specified <see cref="IServiceCollection"/>. 241/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 247/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 252public static IServiceCollection AddKeyedScoped( 253this IServiceCollection services, 268/// specified <see cref="IServiceCollection"/>. 272/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 276/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 281public static IServiceCollection AddKeyedScoped<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>( 282this IServiceCollection services, 294/// specified <see cref="IServiceCollection"/>. 296/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 301/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 306public static IServiceCollection AddKeyedScoped( 307this IServiceCollection services, 319/// specified <see cref="IServiceCollection"/>. 322/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 326/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 331public static IServiceCollection AddKeyedScoped<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>( 332this IServiceCollection services, 344/// specified <see cref="IServiceCollection"/>. 347/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 352/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 357public static IServiceCollection AddKeyedScoped<TService>( 358this IServiceCollection services, 373/// specified <see cref="IServiceCollection"/>. 377/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 382/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 387public static IServiceCollection AddKeyedScoped<TService, TImplementation>( 388this IServiceCollection services, 403/// specified <see cref="IServiceCollection"/>. 405/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 411/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 416public static IServiceCollection AddKeyedSingleton( 417this IServiceCollection services, 432/// specified <see cref="IServiceCollection"/>. 434/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 440/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 445public static IServiceCollection AddKeyedSingleton( 446this IServiceCollection services, 461/// specified <see cref="IServiceCollection"/>. 465/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 469/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 474public static IServiceCollection AddKeyedSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>( 475this IServiceCollection services, 487/// specified <see cref="IServiceCollection"/>. 489/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 494/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 499public static IServiceCollection AddKeyedSingleton( 500this IServiceCollection services, 512/// specified <see cref="IServiceCollection"/>. 515/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 519/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 524public static IServiceCollection AddKeyedSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>( 525this IServiceCollection services, 537/// specified <see cref="IServiceCollection"/>. 540/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 545/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 550public static IServiceCollection AddKeyedSingleton<TService>( 551this IServiceCollection services, 566/// specified <see cref="IServiceCollection"/>. 570/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 575/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 580public static IServiceCollection AddKeyedSingleton<TService, TImplementation>( 581this IServiceCollection services, 596/// specified <see cref="IServiceCollection"/>. 598/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 604/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 609public static IServiceCollection AddKeyedSingleton( 610this IServiceCollection services, 627/// specified <see cref="IServiceCollection"/>. 629/// <param name="services">The <see cref="IServiceCollection"/> to add the service to.</param> 634/// This method always adds a new registration to the <see cref="IServiceCollection"/>, even if a service of the same type and key has already been registered. 639public static IServiceCollection AddKeyedSingleton<TService>( 640this IServiceCollection services, 651private static IServiceCollection AddKeyed( 652IServiceCollection collection, 663private static IServiceCollection AddKeyed( 664IServiceCollection collection,
ServiceLifetime.cs (1)
7/// Specifies the lifetime of a service in an <see cref="IServiceCollection"/>.
Microsoft.Extensions.DependencyInjection.AutoActivation (53)
AutoActivationExtensions.cs (27)
23public static IServiceCollection ActivateSingleton<TService>(this IServiceCollection services) 57public static IServiceCollection ActivateSingleton(this IServiceCollection services, Type serviceType) 97public static IServiceCollection AddActivatedSingleton<TService, TImplementation>(this IServiceCollection services, Func<IServiceProvider, TImplementation> implementationFactory) 116public static IServiceCollection AddActivatedSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services) 134public static IServiceCollection AddActivatedSingleton<TService>(this IServiceCollection services, Func<IServiceProvider, TService> implementationFactory) 151public static IServiceCollection AddActivatedSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services) 163/// <see cref="IServiceCollection"/>. 168public static IServiceCollection AddActivatedSingleton( 169this IServiceCollection services, 187public static IServiceCollection AddActivatedSingleton( 188this IServiceCollection services, 208public static IServiceCollection AddActivatedSingleton( 209this IServiceCollection services, 228this IServiceCollection services, 244this IServiceCollection services, 261public static void TryAddActivatedSingleton(this IServiceCollection services, Type serviceType, Func<IServiceProvider, object> implementationFactory) 275public static void TryAddActivatedSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>(this IServiceCollection services) 289public static void TryAddActivatedSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>(this IServiceCollection services) 304public static void TryAddActivatedSingleton<TService>(this IServiceCollection services, Func<IServiceProvider, TService> implementationFactory) 313private static void TryAddAndActivate<TService>(this IServiceCollection services, ServiceDescriptor descriptor) 325private static void TryAddAndActivate(this IServiceCollection services, ServiceDescriptor descriptor)
AutoActivationExtensions.Keyed.cs (26)
21public static IServiceCollection ActivateKeyedSingleton<TService>( 22this IServiceCollection services, 58public static IServiceCollection ActivateKeyedSingleton( 59this IServiceCollection services, 102public static IServiceCollection AddActivatedKeyedSingleton<TService, TImplementation>( 103this IServiceCollection services, 125public static IServiceCollection AddActivatedKeyedSingleton<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>( 126this IServiceCollection services, 144public static IServiceCollection AddActivatedKeyedSingleton<TService>( 145this IServiceCollection services, 162public static IServiceCollection AddActivatedKeyedSingleton<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>( 163this IServiceCollection services, 179public static IServiceCollection AddActivatedKeyedSingleton( 180this IServiceCollection services, 200public static IServiceCollection AddActivatedKeyedSingleton( 201this IServiceCollection services, 223public static IServiceCollection AddActivatedKeyedSingleton( 224this IServiceCollection services, 245this IServiceCollection services, 263this IServiceCollection services, 283this IServiceCollection services, 302this IServiceCollection services, 319this IServiceCollection services, 337this IServiceCollection services, 348private static void TryAddAndActivateKeyed<TService>(this IServiceCollection services, ServiceDescriptor descriptor) 360private static void TryAddAndActivateKeyed(this IServiceCollection services, ServiceDescriptor descriptor)
Microsoft.Extensions.Diagnostics (26)
Metrics\MetricsServiceExtensions.cs (13)
14/// Extension methods for setting up metrics services in an <see cref="IServiceCollection" />. 19/// Adds metrics services to the specified <see cref="IServiceCollection" />. 21/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 22/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 23public static IServiceCollection AddMetrics(this IServiceCollection services) 43/// Adds metrics services to the specified <see cref="IServiceCollection" />. 45/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 47/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 48public static IServiceCollection AddMetrics(this IServiceCollection services, Action<IMetricsBuilder> configure) 60private sealed class MetricsBuilder(IServiceCollection services) : IMetricsBuilder 62public IServiceCollection Services { get; } = services;
Tracing\TracingServiceExtensions.cs (13)
13/// Extension methods for setting up tracing services in an <see cref="IServiceCollection" />. 18/// Adds tracing services to the specified <see cref="IServiceCollection" />. 20/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 21/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 22public static IServiceCollection AddTracing(this IServiceCollection services) 36/// Adds tracing services to the specified <see cref="IServiceCollection" />. 38/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 40/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 41public static IServiceCollection AddTracing(this IServiceCollection services, Action<ITracingBuilder> configure) 52private sealed class TracingBuilder(IServiceCollection services) : ITracingBuilder 54public IServiceCollection Services { get; } = services;
Microsoft.Extensions.Diagnostics.Abstractions (2)
Metrics\IMetricsBuilder.cs (1)
17IServiceCollection Services { get; }
Tracing\ITracingBuilder.cs (1)
18IServiceCollection Services { get; }
Microsoft.Extensions.Diagnostics.ExceptionSummarization (7)
ExceptionSummarizationBuilder.cs (2)
12public ExceptionSummarizationBuilder(IServiceCollection services) 17public IServiceCollection Services { get; }
ExceptionSummarizationServiceCollectionExtensions.cs (4)
22public static IServiceCollection AddExceptionSummarizer(this IServiceCollection services) 37public static IServiceCollection AddExceptionSummarizer(this IServiceCollection services, Action<IExceptionSummarizationBuilder> configure)
IExceptionSummarizationBuilder.cs (1)
17IServiceCollection Services { get; }
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (2)
ExceptionSummaryExtensionsTests.cs (1)
14IServiceCollection services = new ServiceCollection();
HttpExceptionSummaryProviderExtensionsTests.cs (1)
14IServiceCollection services = new ServiceCollection();
Microsoft.Extensions.Diagnostics.HealthChecks (10)
DependencyInjection\HealthChecksBuilder.cs (2)
12public HealthChecksBuilder(IServiceCollection services) 17public IServiceCollection Services { get; }
DependencyInjection\HealthCheckServiceCollectionExtensions.cs (4)
11/// Provides extension methods for registering <see cref="HealthCheckService"/> in an <see cref="IServiceCollection"/>. 21/// <see cref="HealthCheckService"/> instance in the <see cref="IServiceCollection"/>. It can be invoked 24/// <param name="services">The <see cref="IServiceCollection"/> to add the <see cref="HealthCheckService"/> to.</param> 26public static IHealthChecksBuilder AddHealthChecks(this IServiceCollection services)
DependencyInjection\IHealthChecksBuilder.cs (2)
20/// Gets the <see cref="IServiceCollection"/> into which <see cref="IHealthCheck"/> instances should be registered. 22IServiceCollection Services { get; }
HealthCheckService.cs (2)
20/// <see cref="HealthCheckServiceCollectionExtensions.AddHealthChecks(IServiceCollection)"/>. 24/// <see cref="HealthCheckServiceCollectionExtensions.AddHealthChecks(IServiceCollection)"/>
Microsoft.Extensions.Diagnostics.HealthChecks.Common (6)
CommonHealthChecksExtensions.TelemetryPublisher.cs (6)
20public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services) 33public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, IConfigurationSection section) 47public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, Action<TelemetryHealthCheckPublisherOptions> configure)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
ApplicationLifecycleHealthChecksExtensionsTests.cs (1)
53private static void AssertAddedHealthCheck<T>(IServiceCollection serviceCollection)
ManualHealthCheckExtensionsTests.cs (3)
44Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddHealthChecks().AddManualHealthCheck()); 45Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddHealthChecks().AddManualHealthCheck(null!)); 48private static void AssertAddedHealthCheck<T>(IServiceCollection serviceCollection, string name)
Microsoft.Extensions.Diagnostics.Probes (24)
KubernetesProbesExtensions.cs (6)
22public static IServiceCollection AddKubernetesProbes(this IServiceCollection services) 31public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, IConfigurationSection section) 45public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, Action<KubernetesProbesOptions> configure)
TcpEndpointProbesExtensions.cs (18)
24/// <param name="services">The <see cref="IServiceCollection" /> to add the services to.</param> 26public static IServiceCollection AddTcpEndpointProbe(this IServiceCollection services) 37/// <param name="services">The <see cref="IServiceCollection" /> to add the services to.</param> 40public static IServiceCollection AddTcpEndpointProbe(this IServiceCollection services, string name) 62/// <param name="services">The <see cref="IServiceCollection" /> to add the services to.</param> 65public static IServiceCollection AddTcpEndpointProbe( 66this IServiceCollection services, 81/// <param name="services">The <see cref="IServiceCollection" /> to add the services to.</param> 85public static IServiceCollection AddTcpEndpointProbe( 86this IServiceCollection services, 102/// <param name="services">The <see cref="IServiceCollection" /> to add the services to.</param> 105public static IServiceCollection AddTcpEndpointProbe( 106this IServiceCollection services, 121/// <param name="services">The <see cref="IServiceCollection" /> to add the services to.</param> 125public static IServiceCollection AddTcpEndpointProbe( 126this IServiceCollection services,
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
KubernetesProbesExtensionsTests.cs (1)
120private static IHost CreateWebHost(Action<IServiceCollection> configureServices)
KubernetesProbesOptionsValidatorTests.cs (1)
118private static IHost CreateHost(Action<IServiceCollection> configureServices)
TcpEndpointProbesExtensionsTests.cs (1)
175private static IHost CreateWebHost(Action<IServiceCollection> configureServices)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (9)
IResourceMonitorBuilder.cs (1)
22IServiceCollection Services { get; }
ResourceMonitorBuilder.cs (2)
15public IServiceCollection Services { get; } 17public ResourceMonitorBuilder(IServiceCollection services)
ResourceMonitoringServiceCollectionExtensions.cs (6)
36public static IServiceCollection AddResourceMonitoring( 37this IServiceCollection services) 54public static IServiceCollection AddResourceMonitoring( 55this IServiceCollection services, 64private static IServiceCollection AddResourceMonitoringInternal( 65this IServiceCollection services,
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (3)
KubernetesResourceQuotaServiceCollectionExtensions.cs (3)
27/// <strong>Important:</strong> Do not call <see cref="ResourceMonitoringServiceCollectionExtensions.AddResourceMonitoring(IServiceCollection)"/> 32public static IServiceCollection AddKubernetesResourceMonitoring( 33this IServiceCollection services,
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (4)
KubernetesResourceQuotasServiceCollectionExtensionsTests.cs (4)
18IServiceCollection services = new ServiceCollection(); 46IServiceCollection services = new ServiceCollection(); 74IServiceCollection services = new ServiceCollection(); 98IServiceCollection services = new ServiceCollection();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
ResourceMonitoringExtensionsTests.cs (2)
231IServiceCollection result = services.AddResourceMonitoring(); 246IServiceCollection result = services.AddResourceMonitoring();
Microsoft.Extensions.Diagnostics.Testing (6)
Logging\FakeLoggerServiceCollectionExtensions.cs (6)
22public static IServiceCollection AddFakeLogging(this IServiceCollection services, IConfigurationSection section) 31public static IServiceCollection AddFakeLogging(this IServiceCollection services, Action<FakeLogCollectorOptions> configure) 39public static IServiceCollection AddFakeLogging(this IServiceCollection services)
Microsoft.Extensions.DocumentExtraction (3)
DocumentExtractionClientBuilderServiceCollectionExtensions.cs (3)
26this IServiceCollection services, 45this IServiceCollection services, 65this IServiceCollection services,
Microsoft.Extensions.Hosting (21)
HostApplicationBuilder.cs (8)
204public IServiceCollection Services => _serviceCollection; 261private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new(); 310foreach (Action<HostBuilderContext, IServiceCollection> configureServicesAction in _configureServicesActions) 360public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate) 396public LoggingBuilder(IServiceCollection services) 401public IServiceCollection Services { get; } 404private sealed class MetricsBuilder(IServiceCollection services) : IMetricsBuilder 406public IServiceCollection Services { get; } = services;
HostBuilder.cs (7)
30private readonly List<Action<HostBuilderContext, IServiceCollection>> _configureServicesActions = new List<Action<HostBuilderContext, IServiceCollection>>(); 47_serviceProviderFactory = new ServiceFactoryAdapter<IServiceCollection>(new DefaultServiceProviderFactory()); 93public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate) 293IServiceCollection services, 346foreach (Action<HostBuilderContext, IServiceCollection> configureServicesAction in _configureServicesActions) 353_serviceProviderFactory = new ServiceFactoryAdapter<IServiceCollection>(new DefaultServiceProviderFactory(new ServiceProviderOptions { ValidateOnBuild = true, ValidateScopes = true }));
HostBuilder.netcoreapp.cs (1)
12private static void AddLifetime(IServiceCollection services)
HostingHostBuilderExtensions.cs (3)
154/// <param name="configureDelegate">The delegate for configuring the <see cref="IServiceCollection"/>.</param> 156public static IHostBuilder ConfigureServices(this IHostBuilder hostBuilder, Action<IServiceCollection> configureDelegate) 276internal static void AddDefaultServices(HostBuilderContext hostingContext, IServiceCollection services)
Internal\IServiceFactoryAdapter.cs (1)
11object CreateBuilder(IServiceCollection services);
Internal\ServiceFactoryAdapter.cs (1)
32public object CreateBuilder(IServiceCollection services)
Microsoft.Extensions.Hosting.Abstractions (13)
IHost.cs (1)
16/// Gets the services configured for the program (for example, using <see cref="IHostBuilder.ConfigureServices(Action{HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceCollection})" />).
IHostApplicationBuilder.cs (1)
49IServiceCollection Services { get; }
IHostBuilder.cs (2)
43/// <param name="configureDelegate">The delegate for configuring the <see cref="IServiceCollection"/> that will be used 46IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate);
ServiceCollectionHostedServiceExtensions.cs (9)
12/// Extension methods for adding hosted services to an <see cref="IServiceCollection" />. 33/// <param name="services">The <see cref="IServiceCollection"/> to register with.</param> 34/// <returns>The original <see cref="IServiceCollection"/>.</returns> 35public static IServiceCollection AddHostedService<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THostedService>(this IServiceCollection services) 60/// <param name="services">The <see cref="IServiceCollection"/> to register with.</param> 62/// <returns>The original <see cref="IServiceCollection"/>.</returns> 63public static IServiceCollection AddHostedService<THostedService>(this IServiceCollection services, Func<IServiceProvider, THostedService> implementationFactory)
Microsoft.Extensions.Hosting.Systemd (7)
SystemdHostBuilderExtensions.cs (7)
81/// The <see cref="IServiceCollection"/> used to build the <see cref="IHost"/>. 82/// For example, <see cref="HostApplicationBuilder.Services"/> or the <see cref="IServiceCollection"/> passed to the 83/// <see cref="IHostBuilder.ConfigureServices(System.Action{HostBuilderContext, IServiceCollection})"/> callback. 86public static IServiceCollection AddSystemd(this IServiceCollection services) 103private static void AddSystemdLogger(IServiceCollection services) 111private static void AddSystemdLifetime(IServiceCollection services)
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
72public IHostBuilder ConfigureServices(Action<HostBuilderContext, IServiceCollection> configureDelegate)
Microsoft.Extensions.Hosting.WindowsServices (11)
WindowsServiceLifetimeHostBuilderExtensions.cs (11)
70/// The <see cref="IServiceCollection"/> used to build the <see cref="IHost"/>. 71/// For example, <see cref="HostApplicationBuilder.Services"/> or the <see cref="IServiceCollection"/> passed to the 72/// <see cref="IHostBuilder.ConfigureServices(Action{HostBuilderContext, IServiceCollection})"/> callback. 75public static IServiceCollection AddWindowsService(this IServiceCollection services) 89/// The <see cref="IServiceCollection"/> used to build the <see cref="IHost"/>. 90/// For example, <see cref="HostApplicationBuilder.Services"/> or the <see cref="IServiceCollection"/> passed to the 91/// <see cref="IHostBuilder.ConfigureServices(Action{HostBuilderContext, IServiceCollection})"/> callback. 95public static IServiceCollection AddWindowsService(this IServiceCollection services, Action<WindowsServiceLifetimeOptions> configure) 107private static void AddWindowsServiceLifetime(IServiceCollection services, Action<WindowsServiceLifetimeOptions> configure)
Microsoft.Extensions.Http (89)
DependencyInjection\DefaultHttpClientBuilder.cs (2)
11public DefaultHttpClientBuilder(IServiceCollection services, string name) 23public IServiceCollection Services { get; }
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (2)
14private readonly IServiceCollection _services; 18public DefaultHttpClientBuilderServiceCollection(IServiceCollection services, bool isDefault, DefaultHttpClientConfigurationTracker tracker)
DependencyInjection\DefaultSocketsHttpHandlerBuilder.cs (2)
9public DefaultSocketsHttpHandlerBuilder(IServiceCollection services, string name) 17public IServiceCollection Services { get; }
DependencyInjection\HttpClientBuilderExtensions.cs (5)
682/// If used in conjunction with <see cref="HttpClientFactoryServiceCollectionExtensions.ConfigureHttpClientDefaults(IServiceCollection, Action{IHttpClientBuilder})"/>, 692IServiceCollection services = builder.Services; 724/// If used in conjunction with <see cref="HttpClientFactoryServiceCollectionExtensions.ConfigureHttpClientDefaults(IServiceCollection, Action{IHttpClientBuilder})"/>, 734IServiceCollection services = builder.Services; 786internal static HttpClientMappingRegistry GetMappingRegistry(this IServiceCollection services)
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)
DependencyInjection\HttpClientKeyedLifetime.cs (2)
38public void AddRegistration(IServiceCollection services) 49public void RemoveRegistration(IServiceCollection services)
DependencyInjection\IHttpClientBuilder.cs (1)
21IServiceCollection Services { get; }
DependencyInjection\ISocketsHttpHandlerBuilder.cs (1)
21IServiceCollection Services { get; }
IHttpClientFactory.cs (2)
13/// A default <see cref="IHttpClientFactory"/> can be registered in an <see cref="IServiceCollection"/> 14/// by calling <see cref="HttpClientFactoryServiceCollectionExtensions.AddHttpClient(IServiceCollection)"/>.
IHttpMessageHandlerFactory.cs (2)
13/// A default <see cref="IHttpMessageHandlerFactory"/> can be registered in an <see cref="IServiceCollection"/> 14/// by calling <see cref="HttpClientFactoryServiceCollectionExtensions.AddHttpClient(IServiceCollection)"/>.
ITypedHttpClientFactory.cs (3)
19/// <see cref="HttpClientFactoryServiceCollectionExtensions.AddHttpClient{TClient}(IServiceCollection, string)"/> and 25/// A default <see cref="ITypedHttpClientFactory{TClient}"/> can be registered in an <see cref="IServiceCollection"/> 26/// by calling <see cref="HttpClientFactoryServiceCollectionExtensions.AddHttpClient(IServiceCollection)"/>.
Microsoft.Extensions.Http.Diagnostics (38)
Http\HttpDiagnosticsServiceCollectionExtensions.cs (6)
19/// <param name="services"><see cref="IServiceCollection"/> object instance.</param> 22public static IServiceCollection AddDownstreamDependencyMetadata(this IServiceCollection services, IDownstreamDependencyMetadata downstreamDependencyMetadata) 35/// <param name="services"><see cref="IServiceCollection"/> object instance.</param> 37public static IServiceCollection AddDownstreamDependencyMetadata<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(this IServiceCollection services)
Latency\HttpClientLatencyTelemetryExtensions.cs (9)
25/// <param name="services">The <see cref="IServiceCollection" />.</param> 27public static IServiceCollection AddHttpClientLatencyTelemetry(this IServiceCollection services) 60/// <param name="services">The <see cref="IServiceCollection" />.</param> 63public static IServiceCollection AddHttpClientLatencyTelemetry(this IServiceCollection services, IConfigurationSection section) 79/// <param name="services">The <see cref="IServiceCollection" />.</param> 82public static IServiceCollection AddHttpClientLatencyTelemetry(this IServiceCollection services, Action<HttpClientLatencyTelemetryOptions> configure)
Logging\HttpClientLoggingServiceCollectionExtensions.cs (13)
25/// <param name="services">The <see cref="IServiceCollection" />.</param> 31public static IServiceCollection AddExtendedHttpClientLogging(this IServiceCollection services) 55/// <param name="services">The <see cref="IServiceCollection" />.</param> 62public static IServiceCollection AddExtendedHttpClientLogging(this IServiceCollection services, IConfigurationSection section) 77/// <param name="services">The <see cref="IServiceCollection" />.</param> 84public static IServiceCollection AddExtendedHttpClientLogging(this IServiceCollection services, Action<LoggingOptions> configure) 97/// Adds an enricher instance of <typeparamref name="T"/> to the <see cref="IServiceCollection"/> to enrich <see cref="HttpClient"/> logs. 100/// <param name="services">The <see cref="IServiceCollection"/> to add the instance of <typeparamref name="T"/> to.</param> 102public static IServiceCollection AddHttpClientLogEnricher<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(this IServiceCollection services)
Logging\Internal\TelemetryCommonHttpExtensions.cs (4)
13public static IServiceCollection AddHttpHeadersRedactor(this IServiceCollection services) 21public static IServiceCollection AddOutgoingRequestContext(this IServiceCollection services)
src\Shared\Debugger\DebuggerExtensions.cs (6)
25public static IServiceCollection AddSystemDebuggerState(this IServiceCollection services) 39public static IServiceCollection AddAttachedDebuggerState(this IServiceCollection services) 53public static IServiceCollection AddDetachedDebuggerState(this IServiceCollection services)
Microsoft.Extensions.Http.Diagnostics.Tests (16)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (3)
25var act = () => ((IServiceCollection)null!).AddHttpClientLatencyTelemetry(); 28act = () => Mock.Of<IServiceCollection>().AddHttpClientLatencyTelemetry((Action<HttpClientLatencyTelemetryOptions>)null!); 31act = () => Mock.Of<IServiceCollection>().AddHttpClientLatencyTelemetry((IConfigurationSection)null!);
Logging\HttpClientLoggingExtensionsTest.cs (7)
63var act = () => ((IServiceCollection)null!).AddExtendedHttpClientLogging(); 66act = () => ((IServiceCollection)null!).AddExtendedHttpClientLogging(_ => { }); 69act = () => ((IServiceCollection)null!).AddExtendedHttpClientLogging(Mock.Of<IConfigurationSection>()); 72act = () => Mock.Of<IServiceCollection>().AddExtendedHttpClientLogging((Action<LoggingOptions>)null!); 75act = () => Mock.Of<IServiceCollection>().AddExtendedHttpClientLogging((IConfigurationSection)null!); 82var act = () => ((IServiceCollection)null!).AddHttpClientLogEnricher<EmptyEnricher>(); 826var services = new ServiceCollection().AddFakeLogging();
Logging\HttpRequestReaderTest.cs (1)
925Action<IServiceCollection>? configureServices = null)
Logging\Internal\HelperExtensions.cs (2)
13public static IServiceCollection BlockRemoteCall(this IServiceCollection services)
Logging\Internal\TestHttpMessageHandlerBuilder.cs (2)
14private readonly IServiceCollection _services; 16public TestHttpMessageHandlerBuilder(IServiceCollection services)
TelemetryCommonExtensionsTests.cs (1)
49Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddHttpHeadersRedactor());
Microsoft.Extensions.Http.Polly (8)
DependencyInjection\PollyServiceCollectionExtensions.cs (8)
22/// <param name="services">The <see cref="IServiceCollection"/>.</param> 24public static IPolicyRegistry<string> AddPolicyRegistry(this IServiceCollection services) 55/// <param name="services">The <see cref="IServiceCollection"/>.</param> 58public static IPolicyRegistry<string> AddPolicyRegistry(this IServiceCollection services, IPolicyRegistry<string> registry) 86/// <param name="services">The <see cref="IServiceCollection"/>.</param> 88/// <returns>The provided <see cref="IServiceCollection"/>.</returns> 89public static IServiceCollection AddPolicyRegistry(this IServiceCollection services, Action<IServiceProvider, IPolicyRegistry<string>> configureRegistry)
Microsoft.Extensions.Http.Resilience (12)
Hedging\IStandardHedgingHandlerBuilder.cs (1)
21IServiceCollection Services { get; }
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (1)
150IServiceCollection Services,
Resilience\IHttpResiliencePipelineBuilder.cs (1)
21IServiceCollection Services { get; }
Resilience\IHttpStandardResiliencePipelineBuilder.cs (1)
21IServiceCollection Services { get; }
Resilience\Internal\PipelineKeyProviderHelper.cs (3)
13public static void SelectPipelineByAuthority(IServiceCollection services, string pipelineName) 21public static void SelectPipelineBy(IServiceCollection services, string pipelineName, Func<IServiceProvider, Func<HttpRequestMessage, string>> selectorFactory) 31private static void UsePipelineKeyProvider(IServiceCollection services, string pipelineName, Func<IServiceProvider, Func<HttpRequestMessage, string>> factory)
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (2)
148private static void ConfigureHttpServices(IServiceCollection services) 176private sealed record HttpResiliencePipelineBuilder(string PipelineName, IServiceCollection Services) : IHttpResiliencePipelineBuilder;
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
96private sealed record HttpStandardResiliencePipelineBuilder(string PipelineName, IServiceCollection Services) : IHttpStandardResiliencePipelineBuilder;
Routing\Internal\RoutingStrategyBuilder.cs (1)
8internal sealed record RoutingStrategyBuilder(string Name, IServiceCollection Services) : IRoutingStrategyBuilder;
Routing\IRoutingStrategyBuilder.cs (1)
21IServiceCollection Services { get; }
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
HttpClientFactory.cs (1)
65private static void AddHedging(this IServiceCollection services, HedgingClientType clientType)
Microsoft.Extensions.Http.Resilience.Tests (5)
Hedging\HedgingTests.cs (1)
36private readonly IServiceCollection _services;
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (2)
204var services = new ServiceCollection().AddLogging().AddMetrics().AddFakeRedaction(); 248var services = new ServiceCollection().AddLogging().AddMetrics();
Resilience\HttpClientBuilderExtensionsTests.RetryBudget.cs (1)
259private static HttpStandardResilienceOptions GetStandardOptions(IServiceCollection services)
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
295private static ResiliencePipeline<HttpResponseMessage> GetPipeline(IServiceCollection services, string name)
Microsoft.Extensions.Identity.Core (10)
IdentityBuilder.cs (7)
22/// <param name="services">The <see cref="IServiceCollection"/> to attach to.</param> 23public IdentityBuilder(Type user, IServiceCollection services) 39/// <param name="services">The <see cref="IServiceCollection"/> to attach to.</param> 40public IdentityBuilder(Type user, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type role, IServiceCollection services) : this(user, services) 68/// Gets the <see cref="IServiceCollection"/> services are attached to. 71/// The <see cref="IServiceCollection"/> services are attached to. 73public IServiceCollection Services { get; }
IdentityServiceCollectionExtensions.cs (3)
11/// Contains extension methods to <see cref="IServiceCollection"/> for configuring identity services. 22public static IdentityBuilder AddIdentityCore<TUser>(this IServiceCollection services) where TUser : class 33public static IdentityBuilder AddIdentityCore<TUser>(this IServiceCollection services, Action<IdentityOptions> setupAction)
Microsoft.Extensions.Localization (11)
LocalizationServiceCollectionExtensions.cs (11)
12/// Extension methods for setting up localization services in an <see cref="IServiceCollection" />. 19/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 20/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 21public static IServiceCollection AddLocalization(this IServiceCollection services) 35/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 39/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 40public static IServiceCollection AddLocalization( 41this IServiceCollection services, 55internal static void AddLocalizationServices(IServiceCollection services) 62IServiceCollection services,
Microsoft.Extensions.Logging (14)
FilterLoggingBuilderExtensions.cs (1)
10/// Extension methods for setting up logging services in an <see cref="IServiceCollection" />.
LoggingBuilder.cs (2)
10public LoggingBuilder(IServiceCollection services) 15public IServiceCollection Services { get; }
LoggingServiceCollectionExtensions.cs (11)
12/// Extension methods for setting up logging services in an <see cref="IServiceCollection" />. 17/// Adds logging services to the specified <see cref="IServiceCollection" />. 19/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 20/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 21public static IServiceCollection AddLogging(this IServiceCollection services) 27/// Adds logging services to the specified <see cref="IServiceCollection" />. 29/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param> 31/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 32public static IServiceCollection AddLogging(this IServiceCollection services, Action<ILoggingBuilder> configure)
Microsoft.Extensions.Logging.Abstractions (2)
ILoggingBuilder.cs (2)
14/// Gets the <see cref="IServiceCollection"/> where Logging services are configured. 16IServiceCollection Services { get; }
Microsoft.Extensions.Logging.AzureAppServices (2)
AzureAppServicesLoggerFactoryExtensions.cs (2)
57var services = builder.Services; 90private static bool TryAddEnumerable(IServiceCollection collection, ServiceDescriptor descriptor)
Microsoft.Extensions.Logging.Configuration (2)
LoggerProviderConfigurationExtensions.cs (2)
22/// <param name="services">The <see cref="IServiceCollection"/> to register on.</param> 27public static void RegisterProviderOptions<TOptions, TProvider>(IServiceCollection services) where TOptions : class
Microsoft.Extensions.ML (13)
Builder\PredictionEnginePoolBuilder.cs (4)
22/// <param name="services">The <see cref="IServiceCollection"/> to add services to.</param> 23public PredictionEnginePoolBuilder(IServiceCollection services) 29/// The <see cref="IServiceCollection"/> to add services to. 31public IServiceCollection Services { get; private set; }
ServiceCollectionExtensions.cs (9)
13/// Extension methods for <see cref="IServiceCollection"/>. 21/// The <see cref="IServiceCollection "/> to add services to. 27this IServiceCollection services) 39/// The <see cref="IServiceCollection "/> to add services to. 48this IServiceCollection services, 58this IServiceCollection services, 73/// The <see cref="IServiceCollection "/> to add services to. 78public static IServiceCollection AddRequiredPredictionEnginePoolServices(this IServiceCollection services)
Microsoft.Extensions.ML.Tests (8)
FileLoaderTests.cs (3)
29var services = new ServiceCollection() 42var services = new ServiceCollection() 61var services = new ServiceCollection()
PredictionEnginePoolTests.cs (2)
30var services = new ServiceCollection() 120var services = new ServiceCollection().AddOptions().AddLogging();
UriLoaderTests.cs (3)
29var services = new ServiceCollection() 42var services = new ServiceCollection() 61var services = new ServiceCollection()
Microsoft.Extensions.ObjectPool.DependencyInjection (14)
ObjectPoolServiceCollectionExtensions.cs (14)
23/// <param name="services">The <see cref="IServiceCollection"/> to add to.</param> 32public static IServiceCollection AddPooled<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TService>( 33this IServiceCollection services, 43/// <param name="services">The <see cref="IServiceCollection"/> to add to.</param> 53public static IServiceCollection AddPooled<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>( 54this IServiceCollection services, 66/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 69public static IServiceCollection ConfigurePool<TService>(this IServiceCollection services, Action<DependencyInjectionPoolOptions> configure) 78/// <param name="services">The <see cref="IServiceCollection"/> to add to.</param> 81public static IServiceCollection ConfigurePools(this IServiceCollection services, IConfigurationSection section) 96private static IServiceCollection AddPooledInternal<TService, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TImplementation>( 97this IServiceCollection services,
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (13)
DependencyInjectionExtensionsTests.cs (13)
51var services = new ServiceCollection().ConfigurePools(builder.Build().GetSection("My:Pools")); 63var services = new ServiceCollection() 87var services = new ServiceCollection().AddPooled<TestDependency>(); 98var services = new ServiceCollection() 115var services = new ServiceCollection().AddPooled<TestDependency>(options => options.Capacity = 64); 128var services = new ServiceCollection() 142var services = new ServiceCollection() 158var services = new ServiceCollection() 177var services = new ServiceCollection() 212var services = new ServiceCollection() 223var services = new ServiceCollection() 258var services = new ServiceCollection() 315var services = new ServiceCollection()
Microsoft.Extensions.Options (57)
OptionsBuilder.cs (4)
26/// Gets the <see cref="IServiceCollection"/> for the options being configured. 28public IServiceCollection Services { get; } 33/// <param name="services">The <see cref="IServiceCollection"/> for the options being configured.</param> 35public OptionsBuilder(IServiceCollection services, string? name)
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, 63/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 69this IServiceCollection services, 79/// Note: These are run before all <see cref="PostConfigure{TOptions}(IServiceCollection, Action{TOptions})"/>. 82/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 84/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 85public static IServiceCollection Configure<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class 90/// Note: These are run before all <see cref="PostConfigure{TOptions}(IServiceCollection, Action{TOptions})"/>. 93/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 96/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 97public static IServiceCollection Configure<TOptions>(this IServiceCollection services, string? name, Action<TOptions> configureOptions) 112/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 114/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 115public static IServiceCollection ConfigureAll<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class 120/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>. 123/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 125/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 126public static IServiceCollection PostConfigure<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class 131/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>. 134/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 137/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 138public static IServiceCollection PostConfigure<TOptions>(this IServiceCollection services, string? name, Action<TOptions> configureOptions) 151/// Note: These are run after all <see cref="Configure{TOptions}(IServiceCollection, Action{TOptions})"/>. 154/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 156/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 157public static IServiceCollection PostConfigureAll<TOptions>(this IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class 166/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 167/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 168public static IServiceCollection ConfigureOptions<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConfigureOptions>( 169this IServiceCollection services) 211/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 213/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 214public static IServiceCollection ConfigureOptions( 215this IServiceCollection services, 240/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 242/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 243public static IServiceCollection ConfigureOptions(this IServiceCollection services, object configureInstance) 267/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 269public static OptionsBuilder<TOptions> AddOptions<TOptions>(this IServiceCollection services) where TOptions : class 276/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 279public static OptionsBuilder<TOptions> AddOptions<TOptions>(this IServiceCollection services, string? name)
Microsoft.Extensions.Options.ConfigurationExtensions (16)
OptionsConfigurationServiceCollectionExtensions.cs (16)
20/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 22/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 25public static IServiceCollection Configure<TOptions>(this IServiceCollection services, IConfiguration config) where TOptions : class 32/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 35/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 38public static IServiceCollection Configure<TOptions>(this IServiceCollection services, string? name, IConfiguration config) where TOptions : class 45/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 48/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 51public static IServiceCollection Configure<TOptions>(this IServiceCollection services, IConfiguration config, Action<BinderOptions>? configureBinder) 59/// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> 63/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 66public static IServiceCollection Configure<TOptions>(this IServiceCollection services, string? name, IConfiguration config, Action<BinderOptions>? configureBinder)
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)
ContextualOptionsServiceCollectionExtensionsTests.cs (1)
20Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddContextualOptions());
Microsoft.Extensions.Resilience (2)
Resilience\ResilienceServiceCollectionExtensions.cs (2)
37public static IServiceCollection AddResilienceEnricher(this IServiceCollection services)
Microsoft.Extensions.Resilience.PerformanceTests (1)
ResilienceEnrichmentBenchmark.cs (1)
38private static ResiliencePipeline CreateResiliencePipeline(Action<IServiceCollection> configure)
Microsoft.Extensions.Resilience.Tests (2)
Resilience\ResilienceServiceCollectionExtensionsTests.cs (2)
23private IServiceCollection _services; 46var services = new ServiceCollection().AddResilienceEnricher();
Microsoft.Extensions.ServiceDiscovery (16)
ServiceDiscoveryHttpClientBuilderExtensions.cs (2)
29var services = httpClientBuilder.Services; 49private static void AddDisableGrpcLoadBalancingFilter(IServiceCollection services, string? name)
ServiceDiscoveryServiceCollectionExtensions.cs (14)
26public static IServiceCollection AddServiceDiscovery(this IServiceCollection services) 37public static IServiceCollection AddServiceDiscovery(this IServiceCollection services, Action<ServiceDiscoveryOptions> configureOptions) 47public static IServiceCollection AddServiceDiscoveryCore(this IServiceCollection services) => AddServiceDiscoveryCore(services, configureOptions: _ => { }); 55public static IServiceCollection AddServiceDiscoveryCore(this IServiceCollection services, Action<ServiceDiscoveryOptions> configureOptions) 81public static IServiceCollection AddConfigurationServiceEndpointProvider(this IServiceCollection services) 90public static IServiceCollection AddConfigurationServiceEndpointProvider(this IServiceCollection services, Action<ConfigurationServiceEndpointProviderOptions> configureOptions) 111public static IServiceCollection AddPassThroughServiceEndpointProvider(this IServiceCollection services)
Microsoft.Extensions.ServiceDiscovery.Dns (20)
ServiceDiscoveryDnsServiceCollectionExtensions.cs (20)
14/// Extensions for <see cref="IServiceCollection"/> to add service discovery. 19/// Adds DNS SRV service discovery to the <see cref="IServiceCollection"/>. 22/// <returns>The provided <see cref="IServiceCollection"/>.</returns> 27public static IServiceCollection AddDnsSrvServiceEndpointProvider(this IServiceCollection services) 35/// Adds DNS SRV service discovery to the <see cref="IServiceCollection"/>. 39/// <returns>The provided <see cref="IServiceCollection"/>.</returns> 44public static IServiceCollection AddDnsSrvServiceEndpointProvider(this IServiceCollection services, Action<DnsSrvServiceEndpointProviderOptions> configureOptions) 70/// Adds DNS service discovery to the <see cref="IServiceCollection"/>. 73/// <returns>The provided <see cref="IServiceCollection"/>.</returns> 77public static IServiceCollection AddDnsServiceEndpointProvider(this IServiceCollection services) 85/// Adds DNS service discovery to the <see cref="IServiceCollection"/>. 89/// <returns>The provided <see cref="IServiceCollection"/>.</returns> 93public static IServiceCollection AddDnsServiceEndpointProvider(this IServiceCollection services, Action<DnsServiceEndpointProviderOptions> configureOptions) 122/// <returns>The provided <see cref="IServiceCollection"/>.</returns> 123public static IServiceCollection ConfigureDnsResolver(this IServiceCollection services, Action<DnsResolverOptions> configureOptions)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (10)
DnsServicePublicApiTests.cs (7)
15IServiceCollection services = null!; 26IServiceCollection services = null!; 38IServiceCollection services = new ServiceCollection(); 50IServiceCollection services = null!; 61IServiceCollection services = null!; 73IServiceCollection services = null!; 84IServiceCollection services = new ServiceCollection();
DnsSrvServiceEndpointResolverTests.cs (1)
192var serviceCollection = new ServiceCollection()
XunitLoggerFactoryExtensions.cs (2)
24public static IServiceCollection AddXunitLogging(this IServiceCollection services, ITestOutputHelper output) =>
Microsoft.Extensions.ServiceDiscovery.Tests (7)
ExtensionsServicePublicApiTests.cs (7)
33IServiceCollection services = null!; 44IServiceCollection services = null!; 68IServiceCollection services = null!; 79IServiceCollection services = null!; 103IServiceCollection services = null!; 114IServiceCollection services = null!; 138IServiceCollection services = null!;
Microsoft.Extensions.ServiceDiscovery.Yarp (5)
ServiceDiscoveryReverseProxyServiceCollectionExtensions.cs (5)
11/// Extensions for <see cref="IServiceCollection"/> used to register the ReverseProxy's components. 30public static IServiceCollection AddHttpForwarderWithServiceDiscovery(this IServiceCollection services) 40public static IServiceCollection AddServiceDiscoveryForwarderFactory(this IServiceCollection services)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
YarpServiceDiscoveryPublicApiTests.cs (2)
27IServiceCollection services = null!; 38IServiceCollection services = null!;
Microsoft.Extensions.Telemetry (57)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (25)
13/// Provides extension methods for setting up the service enrichers in an <see cref="IServiceCollection" />. 18/// Adds an instance of the service enricher to the <see cref="IServiceCollection"/>. 20/// <param name="services">The <see cref="IServiceCollection"/> to add the service enricher to.</param> 27public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services) => 31/// Adds an instance of the service enricher to the <see cref="IServiceCollection"/>. 33/// <param name="services">The <see cref="IServiceCollection"/> to add the service enricher to.</param> 41public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, Action<ApplicationLogEnricherOptions> configure) => 45/// Adds an instance of the service enricher to the <see cref="IServiceCollection"/>. 47/// <param name="services">The <see cref="IServiceCollection"/> to add the service enricher to.</param> 55public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, IConfigurationSection section) => 59/// Adds an instance of the application enricher to the <see cref="IServiceCollection"/>. 61/// <param name="services">The <see cref="IServiceCollection"/> to add the application enricher to.</param> 64public static IServiceCollection AddApplicationLogEnricher(this IServiceCollection services) 73/// Adds an instance of the application enricher to the <see cref="IServiceCollection"/>. 75/// <param name="services">The <see cref="IServiceCollection"/> to add the application enricher to.</param> 79public static IServiceCollection AddApplicationLogEnricher(this IServiceCollection services, Action<ApplicationLogEnricherOptions> configure) 90/// Adds an instance of the application enricher to the <see cref="IServiceCollection"/>. 92/// <param name="services">The <see cref="IServiceCollection"/> to add the application enricher to.</param> 96public static IServiceCollection AddApplicationLogEnricher(this IServiceCollection services, IConfigurationSection section)
Enrichment\ProcessEnricherServiceCollectionExtensions.cs (13)
12/// Provides extension methods for setting up Process enrichers in an <see cref="IServiceCollection" />. 17/// Adds an instance of the process enricher to the <see cref="IServiceCollection"/>. 19/// <param name="services">The <see cref="IServiceCollection"/> to add the process enricher to.</param> 22public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services) 31/// Adds an instance of the process enricher to the <see cref="IServiceCollection"/>. 33/// <param name="services">The <see cref="IServiceCollection"/> to add the process enricher to.</param> 37public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, Action<ProcessLogEnricherOptions> configure) 49/// Adds an instance of the host enricher to the <see cref="IServiceCollection"/>. 51/// <param name="services">The <see cref="IServiceCollection"/> to add the process enricher to.</param> 55public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, IConfigurationSection section)
Http\TelemetryCommonExtensions.cs (4)
18/// <param name="services"><see cref="IServiceCollection"/> object.</param> 19/// <returns>Returns <see cref="IServiceCollection"/> object.</returns> 20public static IServiceCollection AddHttpRouteProcessor(this IServiceCollection services)
Latency\LatencyConsoleExtensions.cs (6)
24public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services) 41public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, Action<LatencyConsoleOptions> configure) 58public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, IConfigurationSection section)
Latency\LatencyContextExtensions.cs (6)
23public static IServiceCollection AddLatencyContext(this IServiceCollection services) 40public static IServiceCollection AddLatencyContext(this IServiceCollection services, Action<LatencyContextOptions> configure) 56public static IServiceCollection AddLatencyContext(this IServiceCollection services, IConfigurationSection section)
Logging\LoggingEnrichmentExtensions.cs (3)
66/// <param name="services">The <see cref="IServiceCollection" />.</param> 68internal static IServiceCollection AddExtendedLoggerFeactory(this IServiceCollection services)
Microsoft.Extensions.Telemetry.Abstractions (17)
Enrichment\EnrichmentServiceCollectionExtensions.cs (8)
23public static IServiceCollection AddLogEnricher<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(this IServiceCollection services) 34public static IServiceCollection AddLogEnricher(this IServiceCollection services, ILogEnricher enricher) 44public static IServiceCollection AddStaticLogEnricher<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(this IServiceCollection services) 55public static IServiceCollection AddStaticLogEnricher(this IServiceCollection services, IStaticLogEnricher enricher)
Latency\NullLatencyContextServiceCollectionExtensions.cs (2)
22public static IServiceCollection AddNullLatencyContext(this IServiceCollection services)
Latency\Registration\LatencyRegistryServiceCollectionExtensions.cs (7)
22public static IServiceCollection RegisterCheckpointNames(this IServiceCollection services, params string[] names) 40public static IServiceCollection RegisterMeasureNames(this IServiceCollection services, params string[] names) 58public static IServiceCollection RegisterTagNames(this IServiceCollection services, params string[] names) 80private static void ConfigureOption(this IServiceCollection services, Action<LatencyContextRegistrationOptions> action)
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Enrichment\EnricherExtensionsTests.cs (1)
27((IServiceCollection)null!).AddLogEnricher(enricher));
Latency\LatencyRegistryExtensionsTests.cs (3)
41var services = RegisterNames(new ServiceCollection()); 67private static IServiceCollection RegisterNames(IServiceCollection services)
Microsoft.Extensions.Telemetry.Tests (9)
Enrichment\ApplicationEnricherExtensionsTests.cs (3)
21((IServiceCollection)null!).AddApplicationLogEnricher()); 24((IServiceCollection)null!).AddApplicationLogEnricher(_ => { })); 27((IServiceCollection)null!).AddApplicationLogEnricher(Mock.Of<IConfigurationSection>()));
Enrichment\ProcessEnricherExtensionsTests.cs (3)
21((IServiceCollection)null!).AddProcessLogEnricher()); 24((IServiceCollection)null!).AddProcessLogEnricher(_ => { })); 27((IServiceCollection)null!).AddProcessLogEnricher(Mock.Of<IConfigurationSection>()));
Enrichment\ServiceEnricherExtensionsTests.cs (3)
22((IServiceCollection)null!).AddServiceLogEnricher()); 25((IServiceCollection)null!).AddServiceLogEnricher(_ => { })); 28((IServiceCollection)null!).AddServiceLogEnricher(Mock.Of<IConfigurationSection>()));
Microsoft.Extensions.Validation (5)
ValidationServiceCollectionExtensions.cs (5)
14/// Adds the validation services to the specified <see cref="IServiceCollection" />. 16/// <param name="services">The <see cref="IServiceCollection" /> to add the services to.</param> 18/// <returns>The <see cref="IServiceCollection" /> for chaining.</returns> 19public static IServiceCollection AddValidation(this IServiceCollection services, Action<ValidationOptions>? configureOptions = null)
Microsoft.Extensions.VectorData.ConformanceTests (22)
DependencyInjectionTests.cs (12)
29public abstract IEnumerable<Func<IServiceCollection, object?, ServiceLifetime, IServiceCollection>> StoreDelegates { get; } 31public abstract IEnumerable<Func<IServiceCollection, object?, string, ServiceLifetime, IServiceCollection>> CollectionDelegates { get; } 56IServiceCollection services = CreateServices(); 71IServiceCollection services = CreateServices(serviceKey); 91IServiceCollection services = CreateServices(serviceKey); 123IServiceCollection services = CreateServices(serviceKey); 143IServiceCollection services = CreateServices(serviceKey); 163IServiceCollection services = CreateServices(serviceKey); 203protected IServiceCollection CreateServices(object? serviceKey = null) 205IServiceCollection services = new ServiceCollection();
EmbeddingGenerationTests.cs (10)
71IServiceCollection serviceCollection = new ServiceCollection(); 92IServiceCollection serviceCollection = new ServiceCollection(); 501public abstract Func<IServiceCollection, IServiceCollection>[] DependencyInjectionStoreRegistrationDelegates { get; } 502public abstract Func<IServiceCollection, IServiceCollection>[] DependencyInjectionCollectionRegistrationDelegates { get; } 572public abstract Func<IServiceCollection, IServiceCollection>[] DependencyInjectionStoreRegistrationDelegates { get; } 573public abstract Func<IServiceCollection, IServiceCollection>[] DependencyInjectionCollectionRegistrationDelegates { get; }
Microsoft.Extensions.WebEncoders (9)
EncoderServiceCollectionExtensions.cs (9)
14/// Extension methods for setting up web encoding services in an <see cref="IServiceCollection" />. 22/// <param name="services">The <see cref="IServiceCollection"/>.</param> 23/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 24public static IServiceCollection AddWebEncoders(this IServiceCollection services) 46/// <param name="services">The <see cref="IServiceCollection"/>.</param> 48/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns> 49public static IServiceCollection AddWebEncoders(this IServiceCollection services, Action<WebEncoderOptions> setupAction)
Microsoft.Maui (10)
Hosting\HandlerMauiAppBuilderExtensions.cs (2)
18 public static IServiceCollection ConfigureMauiHandlers(this IServiceCollection services, Action<IMauiHandlersCollection>? configureDelegate)
Hosting\HybridWebViewServiceCollectionExtensions.cs (5)
6 /// Extension methods to <see cref="IServiceCollection"/> for use with the HybridWebView. 13 /// <param name="services">The <see cref="IServiceCollection"/>.</param> 14 /// <returns>The <see cref="IServiceCollection"/>.</returns> 15 public static IServiceCollection AddHybridWebViewDeveloperTools(this IServiceCollection services)
Hosting\MauiAppBuilder.cs (3)
82 public IServiceCollection Services => _services; 166 public LoggingBuilder(IServiceCollection services) 171 public IServiceCollection Services { get; }
Microsoft.ML.AutoML (2)
AutoMLExperiment\AutoMLExperiment.cs (2)
38private readonly IServiceCollection _serviceCollection; 75internal IServiceCollection ServiceCollection { get => _serviceCollection; }
Shared (6)
Debugger\DebuggerExtensions.cs (6)
25public static IServiceCollection AddSystemDebuggerState(this IServiceCollection services) 39public static IServiceCollection AddAttachedDebuggerState(this IServiceCollection services) 53public static IServiceCollection AddDetachedDebuggerState(this IServiceCollection services)
Shared.Tests (3)
Debugger\DebuggerTest.cs (3)
62Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddAttachedDebuggerState()); 63Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddDetachedDebuggerState()); 64Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddSystemDebuggerState());