Implemented interface member:
property
Services
Microsoft.Extensions.Hosting.IHost.Services
2165 references to Services
Aspire.Hosting (2)
DistributedApplication.cs (1)
308/// exposes a <see cref="Services"/> property which allows developers to get services from the
DistributedApplicationBuilder.cs (1)
866_executionContextOptions.Services = application.Services.GetRequiredService<IServiceProvider>();
Aspire.Hosting.Azure.Kubernetes.Tests (13)
AzureKubernetesEnvironmentExtensionsTests.cs (1)
108var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureKubernetesInfrastructureTests.cs (12)
412var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 416app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 417app.Services, 507var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 511app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 512app.Services, 719var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 723app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 724app.Services, 788var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 792app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 793app.Services,
Aspire.Hosting.Azure.Kusto.Tests (7)
KustoFunctionalTests.cs (7)
55var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 108var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 188var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 192var snapshot = app.Services.GetRequiredService<FakeLogCollector>().GetSnapshot(); 216var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 224var snapshot = app.Services.GetRequiredService<FakeLogCollector>().GetSnapshot(); 257var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Azure.Tests (628)
AzureAppConfigurationExtensionsTests.cs (1)
23var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureAppServiceEnvironmentExtensionsTests.cs (4)
123var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 153var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 174var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 201var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureAppServiceTests.cs (32)
42var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 71var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 100var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 140var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 216var reporter = app.Services.GetRequiredService<IPipelineActivityReporter>() as TestPipelineActivityReporter; 257var reporter = app.Services.GetRequiredService<IPipelineActivityReporter>() as TestPipelineActivityReporter; 291var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 328var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 409var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 447var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 484var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 525var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 787var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 809var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 840var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 876var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 912var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 950var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 985var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1061var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1092var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1167var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1188var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1209var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1230var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1252var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1278var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1309var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1341var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1384var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1404app.Services.GetRequiredService<DistributedApplicationModel>(), 1406app.Services,
AzureBicepProvisionerTests.cs (2)
71var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 75var rns = app.Services.GetRequiredService<ResourceNotificationService>();
AzureBicepResourceTests.cs (1)
81var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureContainerAppEnvironmentExtensionsTests.cs (8)
276var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 305var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 348var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 374var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 400var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 420var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 446var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 597var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureContainerAppsTests.cs (72)
42var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 76var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 106var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 201var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 233var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 277var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 307var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 381var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 458var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 499var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 529var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 565var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 601var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 639var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 679var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 711var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 744var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 795var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 877var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 926var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 957var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 989var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1018var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1055var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1099var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1140var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1215var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1235var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1256var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1279var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1310var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1346var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1377var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1404var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1435var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1466var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1493var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1548var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1599var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1669var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1691var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1721var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1767var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1915var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1969var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2068var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2098var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2127var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2280var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2331var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2353var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2390var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2431var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2471var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2501var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2539var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2579var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2619var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2664var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2694var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2770var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2794var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2818var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2857var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2911var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2960var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2991var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3031var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3072var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3119var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3154app.Services.GetRequiredService<DistributedApplicationModel>(), 3156app.Services,
AzureContainerRegistryTests.cs (3)
29var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 51var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 87var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureCosmosDBEmulatorFunctionalTests.cs (3)
174var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 222var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 292var rns = app.Services.GetRequiredService<ResourceNotificationService>();
AzureCosmosDBExtensionsTests.cs (14)
206var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 317var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 354var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 788var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 790var beforeStartEvent = new BeforeStartEvent(app.Services, model); 820var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 822var beforeStartEvent = new BeforeStartEvent(app.Services, model); 849var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 851var beforeStartEvent = new BeforeStartEvent(app.Services, model); 879var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 881var beforeStartEvent = new BeforeStartEvent(app.Services, model); 1122() => builder.Eventing.PublishAsync(new ResourceReadyEvent(cosmos.Resource, app.Services))); 1139await builder.Eventing.PublishAsync(new ConnectionStringAvailableEvent(cosmos.Resource, app.Services)); 1213var healthCheckService = app.Services.GetRequiredService<HealthCheckService>();
AzureDeployerTests.cs (13)
186var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 244var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 307var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 370var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 436var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 669var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 904var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 963var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 1190var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 1656var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 1745var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 1777var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 1840var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>();
AzureEnvironmentResourceExtensionsTests.cs (383)
183var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 191await LoadInputAsync(app.Services, inputs, tenantInput); 201await LoadInputAsync(app.Services, inputs, subscriptionInput); 210await LoadInputAsync(app.Services, inputs, resourceGroupInput); 219await LoadInputAsync(app.Services, inputs, locationInput); 240var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 246await LoadInputAsync(app.Services, inputs, tenantInput); 255await LoadInputAsync(app.Services, inputs, subscriptionInput); 265await LoadInputAsync(app.Services, inputs, resourceGroupInput); 284var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 295await LoadInputAsync(app.Services, inputs, locationInput); 314var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 315var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 358Services = app.Services, 406var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 412Services = app.Services, 447var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 448var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 490var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 491var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 492var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 520var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 521var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 540var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 541var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 543var (steps, pipelineContext) = await CreateAzureEnvironmentPipelineStepsAsync(environmentResource, model, app.Services); 561var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 565app.Services.GetRequiredService<ResourceLoggerService>(), 567app.Services)); 600var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 601var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 629var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 630var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 650var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 652app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 653app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 655await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 699var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 700var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 702app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 703app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 705await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 734var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 735var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 737app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 738app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 740await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 750Services = app.Services, 782var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 784app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 785app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 787await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 831Services = app.Services, 894var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 896app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 897app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 899await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 915Services = app.Services, 1169var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1171app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1172app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1174await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1184Services = app.Services, 1227var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1229app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1230app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1232await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1248Services = app.Services, 1288var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1290app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1291app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1293await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1309Services = app.Services, 1349var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1350var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1352app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1353app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1355await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1370Services = app.Services, 1404var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1405var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1407app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1408app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1409var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 1411await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1476var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1477var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1479app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1480app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1481var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 1483await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1505Services = app.Services, 1538var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1540app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1541app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1542var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 1544await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1563Services = app.Services, 1597var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1599app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1600app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1601var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 1603await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1614Services = app.Services, 1626Services = app.Services, 1653var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1654var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1656app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1657app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1659await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1691var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1692var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1694app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1695app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1697await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1710Services = app.Services, 1758var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1759var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1761app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1762app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1764await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1794Services = app.Services, 1861var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1862var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1864app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1865app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1867await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1888Services = app.Services, 1932var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1933var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 1935app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 1936app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 1939await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 1959Services = app.Services, 2012var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2013var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2015app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2016app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2018await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2037Services = app.Services, 2051Services = app.Services, 2079var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2080var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2082app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2083app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2085await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2116Services = app.Services, 2157var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2158var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2160app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2161app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2163await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2180Services = app.Services, 2217var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2218var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2220app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2221app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2224await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2234Services = app.Services, 2278var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2279var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2281app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2282app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2285await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2294Services = app.Services, 2333var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2334var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 2359var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2361app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2362app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2364await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2371Services = app.Services, 2385Services = app.Services, 2435var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2436var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2438app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2439app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2441await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2448Services = app.Services, 2465Services = app.Services, 2523var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2524var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2526app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2527app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2529await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2531var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 2546Services = app.Services, 2581var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2583app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2584app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2586await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2592Services = app.Services, 2633var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2635app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2636app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2638await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2645Services = app.Services, 2659Services = app.Services, 2695var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2696var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2698app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2699app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2702await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2712Services = app.Services, 2770var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2771var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2773app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2774app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2776await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2785Services = app.Services, 2825var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2826var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2828app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2829app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2831await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2838Services = app.Services, 2885var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2886var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2888app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2889app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2891await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2898Services = app.Services, 2929var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2930var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 2932app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 2933app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 2935await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 2953await LoadInputAsync(app.Services, commandInputs, commandLocationInput); 2959Services = app.Services, 3001var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3002var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3004app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3005app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3007await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3029Services = app.Services, 3068var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3069var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3071app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3072app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3074await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3090Services = app.Services, 3127var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3128var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3130app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3131app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3133await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3159Services = app.Services, 3193var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3194var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3196app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3197app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3199await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3216Services = app.Services, 3257var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3258var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3260app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3261app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3263await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3279Services = app.Services, 3322var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3323var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3325app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3326app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3328await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3350Services = app.Services, 3379var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3380var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3405Services = app.Services, 3437var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3438var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3445Services = app.Services, 3504var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3505var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3519Services = app.Services, 3554var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3567Services = app.Services, 3599var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3600var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3623Services = app.Services, 3654var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3656app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3657app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3659await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3661var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 3695var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3697app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3698app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3700await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3702var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 3741var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3742var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3744app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3745app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3747await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3770Services = app.Services, 3799var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3801app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3802app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3804await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3814var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 3835var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3836var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3838app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3839app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3841await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3849Services = app.Services, 3903var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3904var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3906app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3907app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3909await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 3921Services = app.Services, 3983var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3984var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 3986app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 3987app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 3989await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4001Services = app.Services, 4062var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4063var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4065app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 4066app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 4068await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4075Services = app.Services, 4113var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4114var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4116app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 4117app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 4119await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4127Services = app.Services, 4160var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4161var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4163app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 4164app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 4166await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4173Services = app.Services, 4206var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4207var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4209app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 4210app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 4212await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4219Services = app.Services, 4274var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4276app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 4277app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 4279await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4287Services = app.Services, 4310var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4311var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4313var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 4359var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4360var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4362var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 4407var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4408var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4410var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 4467var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4468var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4470var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 4508var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4526Services = app.Services, 4567var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4578Services = app.Services, 4608var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4625Services = app.Services, 4655var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4657var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4673Services = app.Services, 4710var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4711var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 4745var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4746var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4747var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 4787var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4788var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4790app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(), 4791app.Services.GetRequiredService<DistributedApplicationExecutionContext>()); 4792var controller = app.Services.GetRequiredService<AzureProvisioningController>(); 4794await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 4811Services = app.Services, 4845var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4846var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 4847var controller = app.Services.GetRequiredService<AzureProvisioningController>();
AzureEventHubsExtensionsTests.cs (4)
291var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 355var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = eventHubsEmulatorResource, Services = app.Services }, CancellationToken.None); 416var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = eventHubsEmulatorResource, Services = app.Services }, CancellationToken.None); 490var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = eventHubsEmulatorResource, Services = app.Services }, CancellationToken.None);
AzureFunctionsTests.cs (8)
170var model = host.Services.GetRequiredService<DistributedApplicationModel>(); 196var model = host.Services.GetRequiredService<DistributedApplicationModel>(); 319var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 352var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 380var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 409var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 440var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 761var model = host.Services.GetRequiredService<DistributedApplicationModel>();
AzureKeyVaultTests.cs (1)
36var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureKustoExtensionsTests.cs (1)
24var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureManagedRedisExtensionsTests.cs (1)
37var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureManifestUtils.cs (1)
51var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureOpenAIExtensionsTests.cs (1)
61var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzurePostgresExtensionsTests.cs (4)
38var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 61var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 383var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 413var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureProvisioningResourceTests.cs (3)
36var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 70var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 103var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureRedisExtensionsTests.cs (2)
39var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 59var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureResourcePreparerTests.cs (16)
84var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 132var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 178var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 233var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 298app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<AzureRoleAssignmentResource>(), 354var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 375var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 487var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 522var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 587var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 643var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 746var pipeline = app.Services.GetRequiredService<IDistributedApplicationPipeline>(); 748app.Services.GetRequiredService<DistributedApplicationModel>(), 749app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 750app.Services, 751app.Services.GetRequiredService<ILogger<AzureResourcePreparerTests>>(),
AzureSearchExtensionsTests.cs (1)
40var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureServiceBusExtensionsTests.cs (6)
138var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 372var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, Services = app.Services }, CancellationToken.None); 471var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, Services = app.Services }, CancellationToken.None); 527var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, Services = app.Services }, CancellationToken.None); 586var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, Services = app.Services }, CancellationToken.None); 761var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureSignalRExtensionsTests.cs (2)
21var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 43var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureStorageEmulatorFunctionalTests.cs (6)
49var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 94var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 137var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 191var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 224var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 264var rns = app.Services.GetRequiredService<ResourceNotificationService>();
AzureStorageExtensionsTests.cs (1)
637var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureUserAssignedIdentityTests.cs (7)
30var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 49var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 70var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 118var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 155var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 213var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 292var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureWebPubSubExtensionsTests.cs (1)
287var model = app.Services.GetRequiredService<DistributedApplicationModel>();
ContainerRegistryTests.cs (4)
28var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 58var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 96var publisher = app.Services.GetRequiredKeyedService<IDistributedApplicationPublisher>("test-publisher") as ContainerRegistryValidatingPublisher; 98var model = app.Services.GetRequiredService<DistributedApplicationModel>();
ExistingAzureResourceTests.cs (2)
76var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 561var model = app.Services.GetRequiredService<DistributedApplicationModel>();
FoundryExtensionsTests.cs (10)
91var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 197var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 243var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 263var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 281var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 325var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 357var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 395var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 436var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 476var model = app.Services.GetRequiredService<DistributedApplicationModel>();
RoleAssignmentTests.cs (5)
238var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 267var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 297var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 325var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 349var model = app.Services.GetRequiredService<DistributedApplicationModel>();
TokenCredentialProviderTests.cs (5)
20var provider = app.Services.GetRequiredService<ITokenCredentialProvider>(); 34var first = app.Services.GetRequiredService<ITokenCredentialProvider>(); 35var second = app.Services.GetRequiredService<ITokenCredentialProvider>(); 50var provider = app.Services.GetRequiredService<ITokenCredentialProvider>(); 69var resolved = app.Services.GetRequiredService<ITokenCredentialProvider>();
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (2)
540var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 541await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
Aspire.Hosting.Browsers.Tests (51)
BrowserLogsBuilderExtensionsTests.cs (51)
45var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 99var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 110Services = app.Services, 117Services = app.Services, 124Services = app.Services, 154var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 163Services = app.Services, 190var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 223var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 300var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 327var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 351var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 377var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 420var browserLogsResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>()); 446var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 482var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 492app.Services.GetRequiredService<IConfiguration>(), 493app.Services.GetRequiredService<BrowserLogsConfigurationStore>()); 525var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 535app.Services.GetRequiredService<IConfiguration>(), 536app.Services.GetRequiredService<BrowserLogsConfigurationStore>()); 565var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 573app.Services.GetRequiredService<IConfiguration>(), 574app.Services.GetRequiredService<BrowserLogsConfigurationStore>()); 604var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 614app.Services.GetRequiredService<IConfiguration>(), 615app.Services.GetRequiredService<BrowserLogsConfigurationStore>()); 649var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 659app.Services.GetRequiredService<IConfiguration>(), 660app.Services.GetRequiredService<BrowserLogsConfigurationStore>()); 700var browserLogsResources = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().ToArray(); 739var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 748app.Services.GetRequiredService<IConfiguration>(), 749app.Services.GetRequiredService<BrowserLogsConfigurationStore>()); 793var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 837var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 877var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 886app.Services.GetRequiredService<ResourceLoggerService>().WatchAsync(browserLogsResource.Name), 953var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1006var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1091var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1164var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1220var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1280var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1316var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1344var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1358var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 1359await eventing.PublishAsync(new ResourceReadyEvent(web.Resource, app.Services)).DefaultTimeout(); 1400var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1535var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single(); 1607var browserLogsResource = app.Services.GetRequiredService<DistributedApplicationModel>().Resources.OfType<BrowserLogsResource>().Single();
Aspire.Hosting.Containers.Tests (21)
ContainerResourceTests.cs (10)
21var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 40var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 59var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 174var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 208var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 236var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 255var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 304var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 351var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources());
ResourceFailureLoggingTests.cs (4)
32logCollector = app.Services.GetFakeLogCollector(); 56logCollector = app.Services.GetFakeLogCollector(); 80logCollector = app.Services.GetFakeLogCollector(); 103logCollector = app.Services.GetFakeLogCollector();
WithDockerfileTests.cs (7)
81var collector = app.Services.GetFakeLogCollector(); 216var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 249var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 486var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 557var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 959var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1005var appModel1 = app1.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.DevTunnels.Tests (5)
DevTunnelResourceBuilderExtensionsTests.cs (5)
224await builder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnel.Resource, app.Services)).DefaultTimeout(); 262app.Services.GetRequiredService<LoggedOutNotificationManager>(), 264app.Services.GetRequiredService<ILogger<DevTunnelHealthCheck>>()); 662await builder.Eventing.PublishAsync(new ResourceReadyEvent(tunnel.Resource, app.Services)).DefaultTimeout(); 664var notifications = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Docker.Tests (3)
DockerComposePublisherTests.cs (1)
188var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder;
DockerComposeTests.cs (2)
885var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 938var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Dotnet.Tests (14)
DotnetProjectResourceTests.cs (14)
604var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 666var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 693var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 719var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 752var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 784var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 814var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 857var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 885var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 918var pipeline = app.Services.GetRequiredService<IDistributedApplicationPipeline>(); 920app.Services.GetRequiredService<DistributedApplicationModel>(), 921app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 922app.Services, 923app.Services.GetRequiredService<ILogger<DotnetProjectResourceTests>>(),
Aspire.Hosting.EntityFrameworkCore.Tests (5)
AddEFMigrationsTests.cs (2)
80var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 250var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
EFCoreOperationExecutorTests.cs (2)
149app.Services, 172app.Services,
EFMigrationWaitForTests.cs (1)
103var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Foundry.Tests (7)
HostedAgentExtensionTests.cs (5)
147app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 424app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 572app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 703var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 705await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model));
ProjectResourceTests.cs (2)
85var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Garnet.Tests (6)
AddGarnetTests.cs (6)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 50var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 343var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 364var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 381var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Go.Tests (4)
AddGoAppTests.cs (4)
495var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 569var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 601var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 634var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services);
Aspire.Hosting.Java.Tests (23)
AddJavaAppPublishTests.cs (4)
843var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 848var args = await ArgumentEvaluator.GetArgumentListAsync(published, app.Services); 1983var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1994Services = app.Services,
AddJavaAppTests.cs (5)
747new BeforeResourceStartedEvent(app.Resource, built.Services), 766new BeforeResourceStartedEvent(app.Resource, built.Services), 793new BeforeResourceStartedEvent(app.Resource, built.Services), 854new BeforeResourceStartedEvent(app.Resource, built.Services), 914Services = app.Services
AddJavaContainerTests.cs (2)
118app.Resource, serviceProvider: built.Services.GetRequiredService<IServiceProvider>()); 135app.Resource, serviceProvider: built.Services.GetRequiredService<IServiceProvider>());
AddQuarkusAppTests.cs (3)
97new BeforeResourceStartedEvent(app.Resource, application.Services), 114new BeforeResourceStartedEvent(app.Resource, application.Services), 286new BeforeResourceStartedEvent(app.Resource, application.Services),
AddSpringBootAppTests.cs (9)
22new BeforeResourceStartedEvent(app.Resource, application.Services), 39new BeforeResourceStartedEvent(app.Resource, application.Services), 56new BeforeResourceStartedEvent(app.Resource, application.Services), 76new BeforeResourceStartedEvent(runApp.Resource, application.Services), 114new BeforeResourceStartedEvent(app.Resource, application.Services), 137new BeforeResourceStartedEvent(app.Resource, application.Services), 190new BeforeResourceStartedEvent(app.Resource, application.Services), 211new BeforeResourceStartedEvent(runApp.Resource, application.Services), 238new BeforeResourceStartedEvent(app.Resource, application.Services),
Aspire.Hosting.JavaScript.Tests (71)
AddBunAppTests.cs (3)
153var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 175var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 201var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AddJavaScriptAppTests.cs (5)
221var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 261app.Services.GetRequiredService<DistributedApplicationModel>(), 262app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 263app.Services, 264app.Services.GetRequiredService<ILogger<AddJavaScriptAppTests>>(),
AddNodeAppTests.cs (7)
246var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 273var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 303var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 484var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 511var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 528var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 549var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AddViteAppTests.cs (23)
504var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 529var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 560var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 574ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }), 620var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 634ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }), 672var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 721var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 732ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }), 767var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 784ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }), 830var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 843ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }), 906var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 916ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }), 1007var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1021ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }), 1093app.Services.GetRequiredService<DistributedApplicationModel>(), 1094app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1095app.Services, 1096app.Services.GetRequiredService<ILogger<AddViteAppTests>>(), 1107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1112ExecutionContext = new DistributedApplicationExecutionContext(new DistributedApplicationExecutionContextOptions(DistributedApplicationOperation.Run) { Services = app.Services }),
AddViteAppWithPnpmTests.cs (4)
21var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 56var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 87var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 118var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
IntegrationTests.cs (2)
25var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 67var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
PackageInstallationTests.cs (17)
32var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 64var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 88var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 127var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 157var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 196var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 225var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 249var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 270var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 294var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 324var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 352var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 379var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 401var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 423var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 443var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 574var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
RequiredCommandTests.cs (2)
205var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 206await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
ResourceCreationTests.cs (8)
20var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 38var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 56var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 76var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 99var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 136var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 171var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 203var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Kafka.Tests (4)
AddKafkaTests.cs (4)
24var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 66var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 213var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 218new BeforeResourceStartedEvent(kafkaUiResource, app.Services),
Aspire.Hosting.Keycloak.Tests (6)
KeycloakPublicApiTests.cs (2)
165var entries = await containerAnnotation.Callback(new() { Model = keycloakResource, Services = app.Services }, CancellationToken.None); 190var entries = await containerAnnotation.Callback(new() { Model = keycloakResource, Services = app.Services }, CancellationToken.None);
KeycloakResourceBuilderTests.cs (4)
27var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 78var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 80var beforeStartEvent = new BeforeStartEvent(app.Services, model); 92var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(keycloak.Resource, serviceProvider: app.Services);
Aspire.Hosting.Kubernetes.Tests (40)
CertManagerTests.cs (5)
38var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 138var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 181var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 218var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 274var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
KubernetesDeployTests.cs (23)
30var env = app.Services.GetRequiredService<DistributedApplicationModel>() 47var env = app.Services.GetRequiredService<DistributedApplicationModel>() 61var env = app.Services.GetRequiredService<DistributedApplicationModel>() 76var env = app.Services.GetRequiredService<DistributedApplicationModel>() 91var env = app.Services.GetRequiredService<DistributedApplicationModel>() 111var env = app.Services.GetRequiredService<DistributedApplicationModel>() 129var env = app.Services.GetRequiredService<DistributedApplicationModel>() 146var env = app.Services.GetRequiredService<DistributedApplicationModel>() 163var env = app.Services.GetRequiredService<DistributedApplicationModel>() 178var env = app.Services.GetRequiredService<DistributedApplicationModel>() 193var env = app.Services.GetRequiredService<DistributedApplicationModel>() 210var env = app.Services.GetRequiredService<DistributedApplicationModel>() 227var env = app.Services.GetRequiredService<DistributedApplicationModel>() 247var env = app.Services.GetRequiredService<DistributedApplicationModel>() 264var env = app.Services.GetRequiredService<DistributedApplicationModel>() 280var env = app.Services.GetRequiredService<DistributedApplicationModel>() 296var env = app.Services.GetRequiredService<DistributedApplicationModel>() 754var env = app.Services.GetRequiredService<DistributedApplicationModel>() 848var pipeline = app.Services.GetRequiredService<IDistributedApplicationPipeline>(); 850app.Services.GetRequiredService<DistributedApplicationModel>(), 851app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 852app.Services, 853app.Services.GetRequiredService<Microsoft.Extensions.Logging.ILogger<KubernetesDeployTests>>(),
KubernetesEnvironmentResourceTests.cs (2)
166var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 224var model = app.Services.GetRequiredService<DistributedApplicationModel>();
KubernetesGatewayTests.cs (6)
266var steps = await CreateStepsAsync(app.Services, k8s.Resource); 361var steps = await CreateStepsAsync(app.Services, k8s.Resource); 484var steps = await CreateStepsAsync(app.Services, k8s.Resource); 626var steps = await CreateStepsAsync(app.Services, k8s.Resource); 629await RunStepAsync(app.Services, prepareStep); 630await RunStepAsync(app.Services, prepareStep);
KubernetesIngressTests.cs (4)
396var steps = await PipelineStepTestHelpers.CreateStepsAsync(app.Services, k8s.Resource); 462var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 497var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 528var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Maui.Tests (39)
MauiBuildQueueTests.cs (17)
402var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 403var loggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 404var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 405var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 414new BeforeResourceStartedEvent(android, app.Services), 434var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 435var loggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 436var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 437var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 451new BeforeResourceStartedEvent(android, app.Services), 934public IServiceProvider Services => App.Services; 935public IDistributedApplicationEventing Eventing => App.Services.GetRequiredService<IDistributedApplicationEventing>(); 936public ResourceNotificationService NotificationService => App.Services.GetRequiredService<ResourceNotificationService>(); 1015var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1016var loggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1017var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 1018var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>();
MauiiOSValidationTests.cs (12)
34await app.Services.GetRequiredService<IDistributedApplicationEventing>() 35.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None); 59await app.Services.GetRequiredService<IDistributedApplicationEventing>() 60.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None); 83await app.Services.GetRequiredService<IDistributedApplicationEventing>() 84.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None); 103await app.Services.GetRequiredService<IDistributedApplicationEventing>() 104.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None); 121await app.Services.GetRequiredService<IDistributedApplicationEventing>() 122.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None); 139await app.Services.GetRequiredService<IDistributedApplicationEventing>() 140.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None);
MauiPlatformExtensionsTests.cs (10)
292await app.Services.GetRequiredService<IDistributedApplicationEventing>() 293.PublishAsync(new BeforeResourceStartedEvent(platform.Resource, app.Services), CancellationToken.None); 705await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None); 718app.Services); 766await appBuilder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), CancellationToken.None); 770await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None); 783app.Services); 807appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None)); 832appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None));
Aspire.Hosting.Milvus.Tests (3)
AddMilvusTests.cs (3)
25var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 55var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 188var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.MongoDB.Tests (4)
AddMongoDBTests.cs (4)
39var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 67var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 98var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 316var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.MySql.Tests (11)
AddMySqlTests.cs (10)
44var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 83var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 121var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 140var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 244await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(myAdmin, app.Services)); 272var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 275builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(myAdmin, app.Services)); 364var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 380var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 385new BeforeResourceStartedEvent(phpMyAdminResource, app.Services),
MySqlFunctionalTests.cs (1)
590var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Nats.Tests (4)
AddNatsTests.cs (4)
48var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 81var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 99var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 141var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Oracle.Tests (5)
AddOracleTests.cs (5)
42var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 81var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 119var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 139var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 162var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.PostgreSQL.Tests (14)
AddPostgresTests.cs (8)
53var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 177var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 222var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 403var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 502var entries = await createServers.Callback(new() { Model = pgadmin, Services = app.Services }, CancellationToken.None); 556var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 566var entries = await createBookmarks.Callback(new() { Model = pgweb, Services = app.Services }, CancellationToken.None);
PostgresFunctionalTests.cs (1)
572var rns = app.Services.GetRequiredService<ResourceNotificationService>();
PostgresMcpBuilderTests.cs (5)
27var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 55var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 88var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 111var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 128var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Python.Tests (53)
AddPythonAppTests.cs (53)
156var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 195var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 238var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 414var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 447var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 508var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 539var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 575var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 624var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 659var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 702var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 736var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 767var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 787var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 826var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 845var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 870var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 901var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 926var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 945var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 964var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 985var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1021var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1055var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1087var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1111var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1133var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1159var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1412var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1456var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1496var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1668var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 2029var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2064var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2118var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2139var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2166var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2194var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2218var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2250var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2293var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2323var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2359var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2395var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2424var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2456var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2486var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2519var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2551var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2576var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2591var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2592var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 2593await eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel), CancellationToken.None);
Aspire.Hosting.Qdrant.Tests (4)
AddQdrantTests.cs (4)
52var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 91var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 124var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 326var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.RabbitMQ.Tests (3)
AddRabbitMQTests.cs (3)
50var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 102var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 141var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Radius.Tests (106)
CloudProviders\ConflictingCredentialsTests.cs (5)
31var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 51var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 67var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 87var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 103var model = app.Services.GetRequiredService<DistributedApplicationModel>();
CloudProviders\MultiEnvironmentProvidersTests.cs (1)
70var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Deployment\DeployPipelineIntegrationTests.cs (3)
25var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 131var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 160var model = app.Services.GetRequiredService<DistributedApplicationModel>();
DeploymentE2E\DeployEndToEndTests.cs (2)
38var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 69var model = app.Services.GetRequiredService<DistributedApplicationModel>();
InnerLoop\GracefulDegradationTests.cs (3)
28var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 66var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 89var model = app.Services.GetRequiredService<DistributedApplicationModel>();
InnerLoop\MultiEnvironmentTests.cs (3)
21var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 66var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 87var model = app.Services.GetRequiredService<DistributedApplicationModel>();
InnerLoop\RadiusInfrastructureInitializationTests.cs (6)
28var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 47var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 67var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 85var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 102var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 122var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\BicepGenerationMultiResourceTests.cs (5)
25var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 49var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 69var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 88var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\BicepGenerationSimpleTests.cs (8)
25var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 45var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 64var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 82var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 102var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 123var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 144var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 167var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\BicepIdentifierTests.cs (2)
54var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 105var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\BicepSyntaxValidationTests.cs (6)
24var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 42var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 63var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 84var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 103var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 152var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\ConfigureRadiusInfrastructureTests.cs (21)
31var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 55var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 152var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 188var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 233var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 260var model = instance.Services.GetRequiredService<DistributedApplicationModel>(); 294var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 322var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 347var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 373var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 403var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 429var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 459var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 490var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 515var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 540var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 571var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 595var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 626var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\ConnectionStringPropagationTests.cs (4)
23var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 46var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 64var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 86var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\ContainerEnvironmentEmissionTests.cs (8)
32var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 54var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 77var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 103var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 122var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 147var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 169var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 191var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\ExistingSecretStoreBicepTests.cs (1)
25var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\InlineSecretStoreBicepTests.cs (1)
23var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\LegacyFallbackEmissionTests.cs (1)
37var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\MultiEnvironmentPublishTests.cs (4)
23var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 41var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 62var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 85var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\ProviderScopeBicepEmissionTests.cs (4)
29var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 53var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 83var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 111var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\RadiusDeployParametersTests.cs (3)
30var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 54var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 111var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\SealedSecretPublishTests.cs (3)
45var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 135var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 209var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\SecretStoreConsumerBicepTests.cs (2)
31var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 56var model = app.Services.GetRequiredService<DistributedApplicationModel>();
RadiusEnvironmentResourceTests.cs (1)
89var model = app.Services.GetRequiredService<DistributedApplicationModel>();
RadiusExtensionsTests.cs (1)
46var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Recipes\RecipePackParametersBicepTests.cs (1)
15var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Recipes\RecipeParameterAdvancedTests.cs (1)
15var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Secrets\AddRadiusSecretStoreTests.cs (3)
28var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 44var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 373var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Secrets\SecretStoreDefaultPathTests.cs (2)
24var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 41var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Secrets\SecretStoreValidationTests.cs (1)
38var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Redis.Tests (29)
AddRedisTests.cs (24)
38var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 66var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 97var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 116var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 133var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 150var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 175var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 204var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 230var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 459var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 490await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 516await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 537await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 740var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 766var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 861var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 864var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 900var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 902await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 904var args = await ArgumentEvaluator.GetArgumentListAsync(redis.Resource, app.Services).AsTask().WaitAsync(TimeSpan.FromSeconds(60)); 934var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 937var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 962var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 965var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
RedisFunctionalTests.cs (5)
188var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 523var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 558var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 677var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 687var clientFactory = app.Services.GetRequiredService<IHttpClientFactory>();
Aspire.Hosting.Rust.Tests (7)
AddRustAppPublishTests.cs (6)
130var logger = app.Services.GetRequiredService<ILogger<AddRustAppPublishTests>>(); 132app.Services, 260var logger = app.Services.GetRequiredService<ILogger<AddRustAppPublishTests>>(); 263app.Services, 317var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 329Services = app.Services,
RustDebugArgsTests.cs (1)
39var args = await ArgumentEvaluator.GetArgumentListAsync(rust.Resource, app.Services);
Aspire.Hosting.Seq.Tests (6)
AddSeqTests.cs (6)
21var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 49var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 78var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 175var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 208var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 238var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.SqlServer.Tests (4)
AddSqlServerTests.cs (4)
43var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 90var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 112var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 276var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Testing (10)
DistributedApplicationFactory.cs (2)
171_shutdownTimeout = application.Services.GetService<IOptions<HostOptions>>()?.Value.ShutdownTimeout ?? _shutdownTimeout; 410_hostApplicationLifetime = app.Services.GetService<IHostApplicationLifetime>()
DistributedApplicationHostingTestingExtensions.cs (7)
71var executionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 77var applicationOptions = app.Services.GetRequiredService<DistributedApplicationOptions>(); 91var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 112var browserToken = app.Services.GetRequiredService<IConfiguration>()["AppHost:BrowserToken"]; 154var clientFactory = app.Services.GetRequiredService<IHttpClientFactory>(); 255var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 295var lifetime = app.Services.GetRequiredService<IHostApplicationLifetime>();
DistributedApplicationTestingBuilder.cs (1)
585public IServiceProvider Services => innerApp.Services;
Aspire.Hosting.Testing.Tests (17)
DashboardTestingBuilderTests.cs (4)
104Assert.False(app.Services.GetRequiredService<IInteractionService>().IsAvailable); 107app.Services.GetRequiredService<IOptions<ResourceNotificationServiceOptions>>().Value.DefaultWaitBehavior); 198var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value; 211var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
TestingBuilderTests.cs (6)
107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 169var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 410var hostEnvironment = app.Services.GetRequiredService<IHostEnvironment>(); 426var config = app.Services.GetRequiredService<IConfiguration>(); 588var dashboardServiceHost = app.Services.GetRequiredService<DashboardServiceHost>(); 616var dashboardServiceHost = app.Services.GetRequiredService<DashboardServiceHost>();
TestingFactoryTests.cs (3)
43var appModel = _app.Services.GetRequiredService<DistributedApplicationModel>(); 65var appModel = _app.Services.GetRequiredService<IHostEnvironment>(); 74var config = _app.Services.GetRequiredService<IConfiguration>();
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (4)
35var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 78var hostApplicationLifetime = app.Services.GetRequiredService<IHostApplicationLifetime>(); 124var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 125var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(LoggerNotificationExtensions));
Aspire.Hosting.Tests (904)
AddConnectionStringTests.cs (2)
27var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 56var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AddParameterTests.cs (11)
27var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 59var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 95var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 147var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 228var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 297var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 329var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 730var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 754var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 777var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 803var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AppHostSmokeTests.cs (1)
92var dcpOptions = host.Services.GetRequiredService<IOptions<DcpOptions>>();
AspireStoreTests.cs (4)
38var store = app.Services.GetRequiredService<IAspireStore>(); 67var store = app.Services.GetRequiredService<IAspireStore>(); 78var store = app.Services.GetRequiredService<IAspireStore>(); 155return app.Services.GetRequiredService<IAspireStore>();
Backchannel\AppHostRpcTargetCancellationTests.cs (9)
28var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 48var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 75var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 103var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 122var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 147var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 174var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 193var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 218var target = app.Services.GetRequiredService<AppHostRpcTarget>();
Backchannel\AppHostRpcTargetUploadTests.cs (10)
18var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 19var fileUploadStore = app.Services.GetRequiredService<IInteractionFileUploadStore>(); 53var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 54var fileUploadStore = app.Services.GetRequiredService<IInteractionFileUploadStore>(); 79var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 80var fileUploadStore = app.Services.GetRequiredService<IInteractionFileUploadStore>(); 105var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 124var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 142var target = app.Services.GetRequiredService<AppHostRpcTarget>(); 143var fileUploadStore = app.Services.GetRequiredService<IInteractionFileUploadStore>();
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (201)
133var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 145app.Services.GetRequiredService<IConfiguration>(), 146app.Services.GetRequiredService<ProfilingTelemetry>(), 147app.Services); 180var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 249app.Services.GetRequiredService<IConfiguration>(), 250app.Services.GetRequiredService<ProfilingTelemetry>(), 251app.Services); 345var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 359app.Services.GetRequiredService<IConfiguration>(), 360app.Services.GetRequiredService<ProfilingTelemetry>(), 361app.Services); 400await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 402var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 414app.Services.GetRequiredService<IConfiguration>(), 415app.Services.GetRequiredService<ProfilingTelemetry>(), 416app.Services); 449await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 451var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 464app.Services.GetRequiredService<IConfiguration>(), 465app.Services.GetRequiredService<ProfilingTelemetry>(), 466app.Services); 511await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 513var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 527app.Services.GetRequiredService<IConfiguration>(), 528app.Services.GetRequiredService<ProfilingTelemetry>(), 529app.Services); 541await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 587await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 589var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 601app.Services.GetRequiredService<IConfiguration>(), 602app.Services.GetRequiredService<ProfilingTelemetry>(), 603app.Services); 615await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 657await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 659var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 673app.Services.GetRequiredService<IConfiguration>(), 674app.Services.GetRequiredService<ProfilingTelemetry>(), 675app.Services); 728await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 730var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 743app.Services.GetRequiredService<IConfiguration>(), 744app.Services.GetRequiredService<ProfilingTelemetry>(), 745app.Services); 769app.Services.GetRequiredService<IConfiguration>(), 770app.Services.GetRequiredService<ProfilingTelemetry>(), 771app.Services); 817await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 819var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 835app.Services.GetRequiredService<IConfiguration>(), 836app.Services.GetRequiredService<ProfilingTelemetry>(), 837app.Services); 871await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 879var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 892app.Services.GetRequiredService<IConfiguration>(), 893app.Services.GetRequiredService<ProfilingTelemetry>(), 894app.Services); 927app.Services.GetRequiredService<IConfiguration>(), 928app.Services.GetRequiredService<ProfilingTelemetry>(), 929app.Services); 941var executionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 975app.Services.GetRequiredService<IConfiguration>(), 976app.Services.GetRequiredService<ProfilingTelemetry>(), 977app.Services); 999var executionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 1030await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 1032var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1044app.Services.GetRequiredService<IConfiguration>(), 1045app.Services.GetRequiredService<ProfilingTelemetry>(), 1046app.Services); 1081await PrimeEnvironmentCallbackCacheAsync(owner.Resource, app.Services).DefaultTimeout(); 1083var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1087app.Services.GetRequiredService<IConfiguration>(), 1088app.Services.GetRequiredService<ProfilingTelemetry>(), 1089app.Services); 1148var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1160app.Services.GetRequiredService<IConfiguration>(), 1161app.Services.GetRequiredService<ProfilingTelemetry>(), 1162app.Services); 1220var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1228app.Services.GetRequiredService<IConfiguration>(), 1229app.Services.GetRequiredService<ProfilingTelemetry>(), 1230app.Services); 1256var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1270app.Services.GetRequiredService<IConfiguration>(), 1271app.Services.GetRequiredService<ProfilingTelemetry>(), 1272app.Services); 1295var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1314app.Services.GetRequiredService<IConfiguration>(), 1315app.Services.GetRequiredService<ProfilingTelemetry>(), 1316app.Services); 1354var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1362app.Services.GetRequiredService<IConfiguration>(), 1363app.Services.GetRequiredService<ProfilingTelemetry>(), 1364app.Services); 1390var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1398app.Services.GetRequiredService<IConfiguration>(), 1399app.Services.GetRequiredService<ProfilingTelemetry>(), 1400app.Services); 1425app.Services.GetRequiredService<IConfiguration>(), 1426app.Services.GetRequiredService<ProfilingTelemetry>(), 1427app.Services); 1429var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1464app.Services.GetRequiredService<IConfiguration>(), 1465app.Services.GetRequiredService<ProfilingTelemetry>(), 1466app.Services); 1468var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1503app.Services.GetRequiredService<IConfiguration>(), 1504app.Services.GetRequiredService<ProfilingTelemetry>(), 1505app.Services); 1538app.Services.GetRequiredService<IConfiguration>(), 1539app.Services.GetRequiredService<ProfilingTelemetry>(), 1540app.Services); 1573app.Services.GetRequiredService<IConfiguration>(), 1574app.Services.GetRequiredService<ProfilingTelemetry>(), 1575app.Services); 1645var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1656app.Services.GetRequiredService<IConfiguration>(), 1657app.Services.GetRequiredService<ProfilingTelemetry>(), 1658app.Services); 1686app.Services.GetRequiredService<IConfiguration>(), 1687app.Services.GetRequiredService<ProfilingTelemetry>(), 1688app.Services); 1712var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1727app.Services.GetRequiredService<IConfiguration>(), 1728app.Services.GetRequiredService<ProfilingTelemetry>(), 1729app.Services); 1757var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1771app.Services.GetRequiredService<IConfiguration>(), 1772app.Services.GetRequiredService<ProfilingTelemetry>(), 1773app.Services); 1803var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1815app.Services.GetRequiredService<IConfiguration>(), 1816app.Services.GetRequiredService<ProfilingTelemetry>(), 1817app.Services); 1845var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1859app.Services.GetRequiredService<IConfiguration>(), 1860app.Services.GetRequiredService<ProfilingTelemetry>(), 1861app.Services); 1892var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1907app.Services.GetRequiredService<IConfiguration>(), 1908app.Services.GetRequiredService<ProfilingTelemetry>(), 1909app.Services); 1938var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1943var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1959app.Services.GetRequiredService<IConfiguration>(), 1960app.Services.GetRequiredService<ProfilingTelemetry>(), 1961app.Services); 1998var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 2017app.Services.GetRequiredService<IConfiguration>(), 2018app.Services.GetRequiredService<ProfilingTelemetry>(), 2019app.Services); 2053var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 2068app.Services.GetRequiredService<IConfiguration>(), 2069app.Services.GetRequiredService<ProfilingTelemetry>(), 2070app.Services); 2101var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 2108app.Services.GetRequiredService<IConfiguration>(), 2109app.Services.GetRequiredService<ProfilingTelemetry>(), 2110app.Services); 2162var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2167var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 2176app.Services.GetRequiredService<IConfiguration>(), 2177app.Services.GetRequiredService<ProfilingTelemetry>(), 2178app.Services); 2287app.Services.GetRequiredService<IConfiguration>(), 2288app.Services.GetRequiredService<ProfilingTelemetry>(), 2289app.Services); 2342app.Services.GetRequiredService<IConfiguration>(), 2343app.Services.GetRequiredService<ProfilingTelemetry>(), 2344app.Services); 2403app.Services.GetRequiredService<IConfiguration>(), 2404app.Services.GetRequiredService<ProfilingTelemetry>(), 2405app.Services); 2472app.Services.GetRequiredService<IConfiguration>(), 2473app.Services.GetRequiredService<ProfilingTelemetry>(), 2474app.Services); 2549app.Services.GetRequiredService<IConfiguration>(), 2550app.Services.GetRequiredService<ProfilingTelemetry>(), 2551app.Services); 2599app.Services.GetRequiredService<IConfiguration>(), 2600app.Services.GetRequiredService<ProfilingTelemetry>(), 2601app.Services); 2654app.Services.GetRequiredService<IConfiguration>(), 2655app.Services.GetRequiredService<ProfilingTelemetry>(), 2656app.Services); 2686app.Services.GetRequiredService<IConfiguration>(), 2687app.Services.GetRequiredService<ProfilingTelemetry>(), 2688app.Services); 2713app.Services.GetRequiredService<IConfiguration>(), 2714app.Services.GetRequiredService<ProfilingTelemetry>(), 2715app.Services); 2742app.Services.GetRequiredService<IConfiguration>(), 2743app.Services.GetRequiredService<ProfilingTelemetry>(), 2744app.Services); 2763app.Services.GetRequiredService<IConfiguration>(), 2764app.Services.GetRequiredService<ProfilingTelemetry>(), 2765app.Services); 2796app.Services.GetRequiredService<IConfiguration>(), 2797app.Services.GetRequiredService<ProfilingTelemetry>(), 2798app.Services);
Backchannel\AuxiliaryBackchannelTests.cs (16)
39var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 79var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 120var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 155var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 196var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 240var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 284var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 320var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 361var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 398var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 418var lifetime = app.Services.GetService<IHostApplicationLifetime>(); 447var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 488var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 531var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 574var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 597var collector = app.Services.GetFakeLogCollector();
BuildOnlyContainerValidationTests.cs (5)
104var pipeline = app.Services.GetRequiredService<IDistributedApplicationPipeline>(); 106app.Services.GetRequiredService<DistributedApplicationModel>(), 107app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 108app.Services, 109app.Services.GetRequiredService<ILogger<BuildOnlyContainerValidationTests>>(),
Codespaces\CodespacesUrlRewriterTests.cs (1)
35var collector = app.Services.GetFakeLogCollector();
ContainerRegistryResourceTests.cs (29)
140var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 155var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 171var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 187var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 291var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 516var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 522var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 540var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 543var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 564var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 567var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 586var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 589var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 609var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 612var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 645var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 648var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 669var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 672var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 696var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 702var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 720var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 723var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 740var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 743var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 761var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 764var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 782var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 785var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
Dashboard\DashboardEventHandlersTests.cs (4)
89var factory = app.Services.GetRequiredService<ILoggerFactory>(); 90var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 91var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 92var configuration = app.Services.GetRequiredService<IConfiguration>();
Dashboard\DashboardOptionsTests.cs (3)
30var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value; 47var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value; 71var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Dashboard\DashboardResourceTests.cs (31)
49var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 78var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 111var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 119var config = (await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout()) 208var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 212var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value; 242var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 285var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 313var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 340var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 381var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 387var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 421var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 427var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 457var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 463var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 495var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 507var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 541var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 553var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 590var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 596var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 623var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 644var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 660var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 711var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 725var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 726var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 779var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 824var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 839app.Services.GetRequiredService<DistributedApplicationExecutionContext>(),
Dcp\DcpCliArgsTests.cs (6)
57var dcpOptions = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value; 77var dcpOptions = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value; 96var dcpOptions = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value; 115var dcpOptions = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value; 170var dcpOptions = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value; 183var exception = Assert.Throws<InvalidOperationException>(() => app.Services.GetRequiredService<IOptions<DcpOptions>>().Value);
Dcp\DcpExecutorTests.cs (212)
56var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 82var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 104var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 128var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 212var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 248var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 305var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 345var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 380var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 421var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 460var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 482var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 504var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 528var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 562var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 625var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 657var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 689var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 722var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 759var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 777var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 806var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 841var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 877var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 915var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 943var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 974var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1006var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1036var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1076var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1119var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1156var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1200var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1238var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1279var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1313var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1351var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1398var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1445var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1467var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1503var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1607var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1679var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1772var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1835var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1925var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2026var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2106var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2191var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2286var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2442var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2564var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2617var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2673var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2767var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2891var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2961var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3040var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3159var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3221var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3286var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3378var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3423var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3464var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3501var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3539var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3568var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3603var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3669var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3687var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3720var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3791var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3840var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3875var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3922var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3964var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4003var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4028var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4063var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4094var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4124var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4161var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4184var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4231var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4255var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4290var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4335var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4367var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4403var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4443var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4474var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4505var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4535var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4564var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4630var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4679var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4731var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4758var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4795var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4821var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4856var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4896var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4936var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4980var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5026var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5068var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5110var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5147var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5165var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5226var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5263var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5318var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5369var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5418var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5512var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5545var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5593var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5630var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5671var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5707var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5749var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5791var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5833var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5870var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5907var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5910await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 5948var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5950await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 5983var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6022var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6064var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6099var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6147var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6204var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6256var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6301var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6372var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6476app.Services.GetRequiredService<DistributedApplicationModel>(), 6618app.Services.GetRequiredService<DistributedApplicationModel>(), 6705var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6795var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6910var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6963var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7011var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7055var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7097var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7136var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7194var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7234var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7261var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7315var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7346var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7394var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7435var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7480var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7516var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7555var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7592var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7628var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7663var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7714var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7752var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7787var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7826var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7861var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7925var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7957var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7997var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8051var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8106var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8157var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8210var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8243var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8287var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8329var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8376var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8418var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8455var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8499var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8575var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8649var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8711var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8770var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8806var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8843var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8940var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8972var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9022var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9057var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9098var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9137var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9182var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9228var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9281var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9334var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9373var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9412var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9473var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9543var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9580var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9671var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9712var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9763var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9804var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9853var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9860await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 9898var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9927var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9931await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 9973var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9977await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 10173var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Dcp\DcpHostNotificationTests.cs (7)
73var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 170var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 229var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 288var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 342var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 414var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 677return host.Services.GetRequiredService<IOptions<DcpOptions>>().Value;
DistributedApplicationBuilderTests.cs (13)
55var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 58var eventingSubscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 67var options = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 78var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 89var pipelineOptions = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 100var pipelineOptions = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 111var config = app.Services.GetRequiredService<IConfiguration>(); 125var outputService = app.Services.GetRequiredService<IPipelineOutputService>(); 137var outputService = app.Services.GetRequiredService<IPipelineOutputService>(); 148var outputService = app.Services.GetRequiredService<IPipelineOutputService>(); 158var config = app.Services.GetRequiredService<IConfiguration>(); 171var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger("AspireLogLevelTest"); 270var config = app.Services.GetRequiredService<IConfiguration>();
DistributedApplicationModelExtensionsTests.cs (2)
27var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 62var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationTests.cs (64)
200var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 201var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 202var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 245var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 246var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 247var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 337var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 380var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 381var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 534var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 535var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 536var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 621var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 622var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 623var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 775var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 832var s = app.Services.GetRequiredService<IKubernetesService>(); 889var s = app.Services.GetRequiredService<IKubernetesService>(); 933var s = app.Services.GetRequiredService<IKubernetesService>(); 1007var s = app.Services.GetRequiredService<IKubernetesService>(); 1008var dc = app.Services.GetRequiredService<IDeveloperCertificateService>(); 1101var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 1102var s = app.Services.GetRequiredService<IKubernetesService>(); 1139var s = app.Services.GetRequiredService<IKubernetesService>(); 1140var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1179var s = app.Services.GetRequiredService<IKubernetesService>(); 1180var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1208var events = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 1215var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1216var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 1217var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1255var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1256var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 1257var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1299var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1303var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1348var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1352var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1380var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1384var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1417var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1421var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1450var dashboardServiceHost = app.Services.GetRequiredService<DashboardServiceHost>(); 1480var dashboardServiceHost = app.Services.GetRequiredService<DashboardServiceHost>(); 1513var s = app.Services.GetRequiredService<IKubernetesService>(); 1515var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1541var s = app.Services.GetRequiredService<IKubernetesService>(); 1543var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1569var s = app.Services.GetRequiredService<IKubernetesService>(); 1571var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1598var s = app.Services.GetRequiredService<IKubernetesService>(); 1600var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1623var s = app.Services.GetRequiredService<IKubernetesService>(); 1846var s = app.Services.GetRequiredService<IKubernetesService>(); 1920var s = app.Services.GetRequiredService<IKubernetesService>(); 2010var s = app.Services.GetRequiredService<IKubernetesService>(); 2051var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 2107var rns = secondRun.App.Services.GetRequiredService<ResourceNotificationService>(); 2153var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 2204var s = app.Services.GetRequiredService<IKubernetesService>(); 2206var lifecycles = app.Services.GetServices<IDistributedApplicationLifecycleHook>(); 2233var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 2234var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 2298var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Eventing\DistributedApplicationBuilderEventingTests.cs (7)
172var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 322var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 331var testEvent = new ResourceStoppedEvent(resource.Resource, app.Services, testResourceEvent); 427var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 430var testEvent = new BeforePublishEvent(app.Services, new([])); 450var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 453var testEvent = new AfterPublishEvent(app.Services, new([]));
ExternalServiceTests.cs (4)
172var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Publish, app.Services).DefaultTimeout(); 424var healthCheckService = app.Services.GetService<HealthCheckService>(); 445var healthCheckService = app.Services.GetService<HealthCheckService>(); 462var healthCheckService = app.Services.GetRequiredService<HealthCheckService>();
Health\FriendlyHealthCheckErrorMessagesTests.cs (4)
29var healthCheckService = app.Services.GetRequiredService<HealthCheckService>(); 69var healthCheckService = app.Services.GetRequiredService<HealthCheckService>(); 109var healthCheckService = app.Services.GetRequiredService<HealthCheckService>(); 147var healthCheckService = app.Services.GetRequiredService<HealthCheckService>();
Health\ResourceHealthCheckServiceTests.cs (6)
159var healthService = app.Services.GetRequiredService<ResourceHealthCheckService>(); 222var logger = app.Services.GetRequiredService<ILogger<ResourceHealthCheckServiceTests>>(); 223var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>(); 262var logger = app.Services.GetRequiredService<ILogger<ResourceHealthCheckServiceTests>>(); 263var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>(); 483var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>();
HealthCheckTests.cs (6)
93var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 94var registration = app.Services.GetRequiredService<IOptions<HealthCheckServiceOptions>>().Value.Registrations 97await eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(resource.Resource, app.Services)); 99var healthCheck = registration.Factory(app.Services); 135var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 172var collector = app.Services.GetFakeLogCollector();
KestrelConfigTests.cs (1)
354var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Orchestrator\ApplicationOrchestratorTests.cs (30)
37var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 85var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 131var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 182var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 250var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 303var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 355var e = Assert.Throws<InvalidOperationException>(() => app.Services.GetService<ApplicationOrchestrator>()); 374var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 419var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 459var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 468await applicationEventing.PublishAsync(new ConnectionStringAvailableEvent(resource.Resource, app.Services), CancellationToken.None); 469await applicationEventing.PublishAsync(new ConnectionStringAvailableEvent(resource.Resource, app.Services), CancellationToken.None); 503var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 532var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 560var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 589var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 625var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 671var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 731var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 780var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 833var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 899var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 940var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1003var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1038var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1296var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1343var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1392var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1449var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1504var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Orchestrator\ParameterProcessorTests.cs (11)
597var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 622var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 642var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 668var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 691var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 713var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 738var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 769var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 807var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 811var parameterProcessor = app.Services.GetRequiredService<ParameterProcessor>(); 840var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Orchestrator\RelationshipEvaluatorTests.cs (5)
29var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 61var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 84var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 130var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Pipelines\DistributedApplicationPipelineTests.cs (5)
984app.Services.GetRequiredService<DistributedApplicationModel>(), 985app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 986app.Services, 987app.Services.GetRequiredService<ILogger<DistributedApplicationPipelineTests>>(), 2399var model = app.Services.GetRequiredService<DistributedApplicationModel>();
ProjectResourceTests.cs (26)
128var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 235var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 258var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 285var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 303var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 319var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 369var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 389var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 432var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 475var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 497var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 522var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 552var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 571var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 595var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 643var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 743var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 774var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 792var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 810var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 829var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 847var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 892var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 926var fakeContainerRuntime = (FakeContainerRuntime)app.Services.GetRequiredService<IContainerRuntime>(); 941var mockImageBuilder = (MockImageBuilder)app.Services.GetRequiredService<IResourceContainerImageManager>(); 1006var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Publishing\PipelineExecutorTests.cs (1)
43var pipeline = app.Services.GetRequiredService<IDistributedApplicationPipeline>();
Publishing\PodmanSaveArgumentsTests.cs (1)
115new ValueProviderContext { ExecutionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>() },
Publishing\ResourceContainerImageManagerTests.cs (63)
38var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 42var collector = app.Services.GetFakeLogCollector(); 70var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 74var collector = app.Services.GetFakeLogCollector(); 103var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 107var collector = app.Services.GetFakeLogCollector(); 140var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 144var collector = app.Services.GetFakeLogCollector(); 174var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 178var collector = app.Services.GetFakeLogCollector(); 204var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 208var collector = app.Services.GetFakeLogCollector(); 242var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 246var collector = app.Services.GetFakeLogCollector(); 286var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 290var collector = app.Services.GetFakeLogCollector(); 323var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 327var collector = app.Services.GetFakeLogCollector(); 355var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 359var collector = app.Services.GetFakeLogCollector(); 384var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 390var collector = app.Services.GetFakeLogCollector(); 435var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 441var collector = app.Services.GetFakeLogCollector(); 464var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 488var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 523var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 556var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 589var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 627var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 635var collector = app.Services.GetFakeLogCollector(); 666var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 704var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 709var collector = app.Services.GetFakeLogCollector(); 749var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 753var collector = app.Services.GetFakeLogCollector(); 823var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 919var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 972var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1066var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1068app.Services, 1105var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1107app.Services, 1132var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1134app.Services, 1161var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1165app.Services, 1194var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1197app.Services, 1243var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1245app.Services, 1274var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1276app.Services, 1307var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1309app.Services, 1316Assert.Equal(app.Services, capturedServices); 1347var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1395var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1430var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1473var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1506var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1542var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1552var containerRuntime = await app.Services.GetRequiredService<IContainerRuntimeResolver>().ResolveAsync(cts.Token);
RequiredCommandAnnotationTests.cs (47)
138var subscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 152var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 154var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 156await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 168var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 170var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 173await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 186var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 188var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 191await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 211var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 213var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 214await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 238var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 240var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 241await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 262var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 264var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 267await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 283var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 285var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 288await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 303var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 306var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 309await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services)); 310await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services)); 335var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 338var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 340await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services)); 341await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services)); 370var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 373var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 375await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services)); 376await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services)); 395var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 397var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 400var publishTask = eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 427var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 429var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 431await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 452var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 455var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 458var publishTask1 = eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services)); 464await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services)); 500var eventSubscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 501var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 502var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>();
ResourceCommandServiceTests.cs (2)
1483var baselineIsAvailable = app.Services.GetRequiredService<IInteractionService>().IsAvailable; 1648var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
ResourceFailureLoggingTests.cs (2)
34logCollector = app.Services.GetFakeLogCollector(); 57logCollector = app.Services.GetFakeLogCollector();
WaitForTests.cs (1)
576var collector = app.Services.GetFakeLogCollector();
WithEndpointTests.cs (2)
406var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1019var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
WithEnvironmentTests.cs (1)
30var serviceProvider = app.Services.GetRequiredService<IServiceProvider>();
WithHttpCommandTests.cs (1)
117var httpClientFactory = app.Services.GetService<IHttpClientFactory>();
WithMcpServerTests.cs (6)
32var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 55var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 80var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 105var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 130var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 155var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
WithOtlpExporterTests.cs (9)
43var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 68var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 104var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 135var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 164var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 189var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 245var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 246var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 256var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
WithProcessCommandTests.cs (4)
438app.Services.GetRequiredService<IConfiguration>(), 439app.Services.GetRequiredService<ProfilingTelemetry>(), 440app.Services); 741var loggerService = app.Services.GetRequiredService<ResourceLoggerService>();
WithTerminalTests.cs (21)
295var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 296await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 373var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 374await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 461var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 462await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 513var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 514await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 909var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 910await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 925var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 926await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 943var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 944await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1273var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1274await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1295var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1296await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1333var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1341var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1342var executionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>();
WithUrlsTests.cs (7)
382var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 407var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 438var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 469var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 585var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 666var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 967var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.TestUtilities (5)
Utils\LoggerNotificationExtensions.cs (4)
35var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 78var hostApplicationLifetime = app.Services.GetRequiredService<IHostApplicationLifetime>(); 124var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 125var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(LoggerNotificationExtensions));
Utils\PersistentContainerTestHelpers.cs (1)
113var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Valkey.Tests (6)
AddValkeyTests.cs (6)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 50var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 98var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 115var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 333var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Yarp.Tests (8)
AddYarpTests.cs (8)
313Services = app.Services, 344Services = app.Services, 376Services = app.Services, 414Services = app.Services, 441var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 443var beforeStartEvent = new BeforeStartEvent(app.Services, model); 466var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 468var beforeStartEvent = new BeforeStartEvent(app.Services, model);
Aspire.Playground.Tests (10)
Infrastructure\DistributedApplicationExtensions.cs (6)
105var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 115var environment = app.Services.GetRequiredService<IHostEnvironment>(); 116var logCollector = app.Services.GetFakeLogCollector(); 133var environment = app.Services.GetRequiredService<IHostEnvironment>(); 134var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 213var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(TryApplyEfMigrationsAsync));
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (4)
35var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 78var hostApplicationLifetime = app.Services.GetRequiredService<IHostApplicationLifetime>(); 124var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 125var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger(nameof(LoggerNotificationExtensions));
TestingAppHost1.AppHost (1)
Program.cs (1)
101var notifications = app.Services.GetRequiredService<ResourceNotificationService>();