Implemented interface member:
property
Services
Microsoft.Extensions.Hosting.IHost.Services
2472 references to Services
Aspire.Hosting (2)
DistributedApplication.cs (1)
322/// exposes a <see cref="Services"/> property which allows developers to get services from the
DistributedApplicationBuilder.cs (1)
876_executionContextOptions.Services = application.Services.GetRequiredService<IServiceProvider>();
Aspire.Hosting.Azure.Kubernetes.Tests (15)
AzureKubernetesEnvironmentExtensionsTests.cs (1)
128var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureKubernetesInfrastructureTests.cs (12)
1365var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1369app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1370app.Services, 1461var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1465app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1466app.Services, 1674var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1678app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1679app.Services, 1744var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1748app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1749app.Services,
AzureKubernetesPersistentVolumeTests.cs (2)
61var store = app.Services.GetRequiredService<IAspireStore>(); 65serviceProvider: app.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 (734)
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>();
AzureConnectorNamespaceTests.cs (7)
33var options = app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>(); 181var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 222var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 255var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 282var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 373var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 388var 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 (73)
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>(); 743var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 780var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 831var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 913var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 962var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 993var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1025var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1054var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1091var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1135var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1176var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1251var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1271var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1292var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1315var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1346var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1382var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1413var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1440var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1471var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1502var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1529var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1584var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1635var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1705var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1727var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1757var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1803var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1951var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2005var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2104var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2134var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2163var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2316var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2367var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2389var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2426var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2467var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2507var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2537var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2575var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2615var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2655var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2700var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2730var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2806var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2830var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2854var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2893var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2947var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2996var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3027var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3067var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3108var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3155var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3190app.Services.GetRequiredService<DistributedApplicationModel>(), 3192app.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>(); 804var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 806var beforeStartEvent = new BeforeStartEvent(app.Services, model); 836var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 838var beforeStartEvent = new BeforeStartEvent(app.Services, model); 865var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 867var beforeStartEvent = new BeforeStartEvent(app.Services, model); 895var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 897var beforeStartEvent = new BeforeStartEvent(app.Services, model); 1141() => builder.Eventing.PublishAsync(new ResourceReadyEvent(cosmos.Resource, app.Services))); 1158await builder.Eventing.PublishAsync(new ConnectionStringAvailableEvent(cosmos.Resource, app.Services)); 1232var 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>();
AzureEnvironmentResourceTests.cs (5)
267var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 297var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 332var provisioningOptions = app.Services.GetRequiredService<IOptions<AzureProvisioningOptions>>().Value; 333var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<AzurePublishingContext>(); 336return new AzurePublishingContext(outputPath, provisioningOptions, app.Services, logger, step);
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>>(),
AzureRunAsEmulatorModeTests.cs (6)
64var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 65var preparer = app.Services.GetRequiredService<AzureResourcePreparer>(); 67await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None); 82var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 83var preparer = app.Services.GetRequiredService<AzureResourcePreparer>(); 85await preparer.OnBeforeStartAsync(new BeforeStartEvent(app.Services, model), CancellationToken.None);
AzureSandboxesTests.cs (84)
63app.Services.GetRequiredService<DistributedApplicationModel>(), 64app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 65app.Services, 110app.Services.GetRequiredService<DistributedApplicationModel>(), 111app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 112app.Services, 162var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 199var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 340var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 362var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 416var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 477var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1047app.Services.GetRequiredService<DistributedApplicationModel>(), 1048app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1049app.Services, 1079app.Services.GetRequiredService<DistributedApplicationModel>(), 1080app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1081app.Services, 1117app.Services.GetRequiredService<DistributedApplicationModel>(), 1118app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1119app.Services, 1186app.Services.GetRequiredService<DistributedApplicationModel>(), 1187app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1188app.Services, 1233app.Services.GetRequiredService<DistributedApplicationModel>(), 1234app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 1235app.Services, 2016var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2182var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2244var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2283var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2307var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2348var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2366app.Services, 2382app.Services, 2444Services = app.Services, 2482Services = app.Services, 2508var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2532var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2597var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2612app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 2613app.Services, 2642app.Services.GetRequiredService<DistributedApplicationModel>().GetProjectResources(), 2668app.Services.GetRequiredService<DistributedApplicationModel>().GetProjectResources(), 2703var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2716app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 2717app.Services, 2726var stateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 2789var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2827Services = app.Services, 2829Model = app.Services.GetRequiredService<DistributedApplicationModel>() 2859var stateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 2874app.Services.GetRequiredService<DistributedApplicationModel>(), 2875app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 2876app.Services, 2909app.Services.GetRequiredService<DistributedApplicationModel>(), 2910app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 2911app.Services, 2946app.Services.GetRequiredService<DistributedApplicationModel>(), 2947app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 2948app.Services, 2984var executionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 2992Services = app.Services, 2994Model = app.Services.GetRequiredService<DistributedApplicationModel>() 3028Services = app.Services, 3030Model = app.Services.GetRequiredService<DistributedApplicationModel>() 3064var executionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 3076Services = app.Services, 3078Model = app.Services.GetRequiredService<DistributedApplicationModel>() 3101app.Services.GetRequiredService<DistributedApplicationModel>(), 3102app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 3103app.Services, 3145var stateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 3156app.Services.GetRequiredService<DistributedApplicationModel>(), 3157app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 3158app.Services, 3189app.Services.GetRequiredService<DistributedApplicationModel>(), 3190app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 3191app.Services, 3253app.Services.GetRequiredService<DistributedApplicationModel>(), 3255app.Services, 3290app.Services.GetRequiredService<DistributedApplicationModel>(), 3291app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 3292app.Services,
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 (13)
95var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 96Assert.Contains(app.Services.GetServices<global::Microsoft.Extensions.Hosting.IHostedService>(), service => service is FoundryLocalLifecycleService); 351.PublishAsync(new ResourceReadyEvent(foundry.Resource, app.Services), cancellation.Token) 568var httpClientFactory = app.Services.GetRequiredService<IHttpClientFactory>(); 664var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 710var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 730var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 748var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 792var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 824var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 862var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 903var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 943var 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)
542var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 543await 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 (8)
DevTunnelResourceBuilderExtensionsTests.cs (8)
225await builder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnel.Resource, app.Services)).DefaultTimeout(); 265await builder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnel.Resource, app.Services)).DefaultTimeout(); 301app.Services.GetRequiredService<LoggedOutNotificationManager>(), 303app.Services.GetRequiredService<ILogger<DevTunnelHealthCheck>>()); 359app.Services.GetRequiredService<LoggedOutNotificationManager>(), 361app.Services.GetRequiredService<ILogger<DevTunnelHealthCheck>>()); 759await builder.Eventing.PublishAsync(new ResourceReadyEvent(tunnel.Resource, app.Services)).DefaultTimeout(); 761var 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 (81)
DotnetProjectBuildCoordinatorTests.cs (66)
67var args = await ArgumentEvaluator.GetArgumentListAsync(buildResource, app.Services); 242var buildArgs = await ArgumentEvaluator.GetArgumentListAsync(buildResource, app.Services); 247var fileArgs = await ArgumentEvaluator.GetArgumentListAsync(file.Resource, app.Services); 310var fileArgs = await ArgumentEvaluator.GetArgumentListAsync(file.Resource, app.Services); 373var args = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 598serviceProvider: app.Services); 795serviceProvider: app.Services)); 817serviceProvider: app.Services); 824serviceProvider: app.Services)); 827serviceProvider: app.Services); 860serviceProvider: app.Services); 863serviceProvider: app.Services); 897new BeforeResourceStartedEvent(buildResource, app.Services), 901serviceProvider: app.Services); 902await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, serviceProvider: app.Services); 914new BeforeResourceStartedEvent(buildResource, app.Services), 918serviceProvider: app.Services); 924serviceProvider: app.Services); 993serviceProvider: app.Services); 1016serviceProvider: app.Services)); 1066await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(buildResource, serviceProvider: app.Services)); 1073serviceProvider: app.Services); 1121new BeforeResourceStartedEvent(buildResource, app.Services), 1125serviceProvider: app.Services); 1139serviceProvider: app.Services); 1143serviceProvider: app.Services); 1169new BeforeResourceStartedEvent(rebuilder, app.Services), 1174serviceProvider: app.Services).AsTask(); 1176var refreshedArgumentsTask = ArgumentEvaluator.GetArgumentListAsync(rebuilder, app.Services).AsTask(); 1179serviceProvider: app.Services).AsTask(); 1187var projectArguments = await ArgumentEvaluator.GetArgumentListAsync(project.Resource, app.Services); 1238new BeforeResourceStartedEvent(buildResource, app.Services), 1242serviceProvider: app.Services).AsTask(); 1248new BeforeResourceStartedEvent(rebuilder, app.Services), 1254var firstArguments = await ArgumentEvaluator.GetArgumentListAsync(buildResource, app.Services); 1268serviceProvider: app.Services); 1269var secondArguments = await ArgumentEvaluator.GetArgumentListAsync(rebuilder, app.Services); 1314app.Services, 1319app.Services, 1374new BeforeResourceStartedEvent(buildResource, app.Services), 1380app.Services, 1397new BeforeResourceStartedEvent(rebuilder, app.Services), 1401app.Services, 1429app.Services, 1432app.Services.GetRequiredService<IHostApplicationLifetime>().StopApplication(); 1462serviceProvider: app.Services); 1465serviceProvider: app.Services); 1468serviceProvider: app.Services); 1518var arguments = await ArgumentEvaluator.GetArgumentListAsync(project.Resource, app.Services); 1557var firstArguments = await ArgumentEvaluator.GetArgumentListAsync(project.Resource, app.Services); 1566var secondArguments = await ArgumentEvaluator.GetArgumentListAsync(project.Resource, app.Services); 1840var args = await ArgumentEvaluator.GetArgumentListAsync(buildResource, app.Services); 1872var args = await ArgumentEvaluator.GetArgumentListAsync(buildResource, app.Services); 1902serviceProvider: app.Services); 1935serviceProvider: app.Services); 1968serviceProvider: app.Services); 2395var args = await ArgumentEvaluator.GetArgumentListAsync(missing.Resource, app.Services); 2504Services = app.Services, 2546var coordinator = app.Services.GetRequiredService<DotnetProjectBuildCoordinator.CoordinatorState>(); 2569app.Services, 2683app.Services.GetRequiredService<ResourceLoggerService>(), 2742var orchestrator = app.Services.GetRequiredService<ApplicationOrchestratorProxy>(); 3067var coordinator = app.Services.GetRequiredService<DotnetProjectBuildCoordinator.CoordinatorState>(); 3068var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 3070new BeforeStartEvent(app.Services, model), 3072await coordinator.MaterializeBuildPlan(model, app.Services);
DotnetProjectResourceTests.cs (15)
642var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 704var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 730var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 756var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 780var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 812var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 844var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 874var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 917var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 945var args = await ArgumentEvaluator.GetArgumentListAsync(app.Resource, application.Services); 987var pipeline = app.Services.GetRequiredService<IDistributedApplicationPipeline>(); 989app.Services.GetRequiredService<DistributedApplicationModel>(), 990app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 991app.Services, 992app.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 (16)
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>();
ToolboxTests.cs (9)
804var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 832Services = app.Services, 854var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 868Services = app.Services, 894var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 915Services = app.Services, 929var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 946var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 948return new PipelineContext(model, execContext, app.Services, NullLogger.Instance, CancellationToken.None);
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)
1236var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1241var args = await ArgumentEvaluator.GetArgumentListAsync(published, app.Services); 2376var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2387Services = 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 (82)
AddBunAppTests.cs (3)
153var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 175var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 201var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AddDenoAppTests.cs (11)
1262var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1284var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1311var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1332var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1357var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1385var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1497var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1512var appModel = distributedApplication.Services.GetRequiredService<DistributedApplicationModel>(); 1529var appModel = distributedApplication.Services.GetRequiredService<DistributedApplicationModel>(); 1547var appModel = distributedApplication.Services.GetRequiredService<DistributedApplicationModel>(); 1706var 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)
232var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 233await 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 (14)
AddKafkaTests.cs (14)
26var registration = Assert.Single(app.Services.GetRequiredService<IOptions<HealthCheckServiceOptions>>().Value.Registrations); 28var exception = Assert.Throws<InvalidOperationException>(() => registration.Factory(app.Services)); 31await builder.Eventing.PublishAsync(new ConnectionStringAvailableEvent(kafka.Resource, app.Services)); 33var check = Assert.IsType<KafkaHealthCheck>(registration.Factory(app.Services)); 34Assert.Same(check, app.Services.GetRequiredKeyedService<KafkaHealthCheck>(registration.Name)); 47await builder.Eventing.PublishAsync(new ConnectionStringAvailableEvent(kafka1.Resource, app.Services)); 48await builder.Eventing.PublishAsync(new ConnectionStringAvailableEvent(kafka2.Resource, app.Services)); 50var registrations = app.Services.GetRequiredService<IOptions<HealthCheckServiceOptions>>().Value.Registrations; 64var check = app.Services.GetRequiredKeyedService<KafkaHealthCheck>(registration.Name); 68using var scope = app.Services.CreateScope(); 85var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 127var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 274var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 279new 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 (52)
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>() 722var env = app.Services.GetRequiredService<DistributedApplicationModel>() 816var pipeline = app.Services.GetRequiredService<IDistributedApplicationPipeline>(); 818app.Services.GetRequiredService<DistributedApplicationModel>(), 819app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 820app.Services, 821app.Services.GetRequiredService<Microsoft.Extensions.Logging.ILogger<KubernetesDeployTests>>(),
KubernetesEnvironmentResourceTests.cs (2)
166var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 246var 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>();
KubernetesPersistentVolumeRunModeTests.cs (11)
29var store = app.Services.GetRequiredService<IAspireStore>(); 36serviceProvider: app.Services); 43serviceProvider: app.Services); 64serviceProvider: app.Services); 67serviceProvider: app.Services); 89serviceProvider: app.Services); 92serviceProvider: app.Services); 182serviceProvider: app.Services); 258serviceProvider: app.Services); 285var store = app.Services.GetRequiredService<IAspireStore>(); 288serviceProvider: app.Services);
KubernetesPublisherTests.cs (1)
1809var store = app.Services.GetRequiredService<IAspireStore>();
Aspire.Hosting.Maui.Tests (69)
MauiBuildQueueTests.cs (20)
404var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 405var loggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 406var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 407var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 412app.Services.GetRequiredService<ResourceCommandService>()); 417new BeforeResourceStartedEvent(android, app.Services), 437var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 438var loggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 439var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 440var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 448app.Services.GetRequiredService<ResourceCommandService>()); 455new BeforeResourceStartedEvent(android, app.Services), 1340public IServiceProvider Services => App.Services; 1341public IDistributedApplicationEventing Eventing => App.Services.GetRequiredService<IDistributedApplicationEventing>(); 1342public ResourceNotificationService NotificationService => App.Services.GetRequiredService<ResourceNotificationService>(); 1421var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1422var loggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1423var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 1424var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 1426var resourceCommandService = app.Services.GetRequiredService<ResourceCommandService>();
MauiiOSValidationTests.cs (12)
35await app.Services.GetRequiredService<IDistributedApplicationEventing>() 36.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None) 61await app.Services.GetRequiredService<IDistributedApplicationEventing>() 62.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None) 86await app.Services.GetRequiredService<IDistributedApplicationEventing>() 87.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None) 107await app.Services.GetRequiredService<IDistributedApplicationEventing>() 108.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None) 126await app.Services.GetRequiredService<IDistributedApplicationEventing>() 127.PublishAsync(new BeforeResourceStartedEvent(device.Resource, app.Services), CancellationToken.None) 145await app.Services.GetRequiredService<IDistributedApplicationEventing>() 146.PublishAsync(new BeforeResourceStartedEvent(simulator.Resource, app.Services), CancellationToken.None)
MauiPlatformExtensionsTests.cs (37)
296await app.Services.GetRequiredService<IDistributedApplicationEventing>() 297.PublishAsync(new BeforeResourceStartedEvent(platform.Resource, app.Services), CancellationToken.None) 581var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 586app.Services.GetRequiredService<ResourceLoggerService>(), 587app.Services.GetRequiredService<ResourceNotificationService>(), 588app.Services.GetRequiredService<IFileSystemService>()) 591app.Services.GetRequiredService<ResourceLoggerService>(), 592app.Services.GetRequiredService<ResourceNotificationService>(), 593app.Services.GetRequiredService<IFileSystemService>()); 595await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services), CancellationToken.None).DefaultTimeout(); 776await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None).DefaultTimeout(); 790app.Services).DefaultTimeout(); 833new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), 845new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), 856app.Services).DefaultTimeout(); 893new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), 922await app.Services.GetRequiredService<ResourceNotificationService>() 943new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), 996await appBuilder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()), CancellationToken.None).DefaultTimeout(); 1000await appBuilder.Eventing.PublishAsync(new ResourceEndpointsAllocatedEvent(dashboard.Resource, app.Services), CancellationToken.None).DefaultTimeout(); 1013app.Services).DefaultTimeout(); 1049app.Services).DefaultTimeout(); 1116app.Services).AsTask(); 1120appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None).DefaultTimeout()); 1146appBuilder.Eventing.PublishAsync(new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), CancellationToken.None).DefaultTimeout()); 1176new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services), 1219await app.Services.GetRequiredService<ResourceNotificationService>() 1227new BeforeResourceStartedEvent(resolutionEventResource, app.Services), 1235app.Services).AsTask(); 1239await app.Services.GetRequiredService<ResourceNotificationService>() 1251new BeforeResourceStartedEvent(resolutionEventResource, app.Services), 1260app.Services).DefaultTimeout(); 1291app.Services).DefaultTimeout()); 1330var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1339app.Services).AsTask(); 1343new BeforeResourceStartedEvent(tunnelConfig.DevTunnel.Resource, app.Services),
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 (30)
AddMongoDBTests.cs (18)
44var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 72var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 103var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 327var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 397var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 398await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 422var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 423await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 448var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 449await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 469var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 470await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 491var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 492await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 511var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 512await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 529var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 530await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel));
ReplicaSet\AddMongoDBReplicaSetTests.cs (12)
36var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 86var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 124var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 198var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 199await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 307var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 308var notifications = app.Services.GetRequiredService<ResourceNotificationService>(); 323await eventing.PublishAsync(new ResourceStoppedEvent(mongo1.Resource, app.Services, stoppedResourceEvent)); 327await eventing.PublishAsync(new BeforeResourceStartedEvent(mongo1.Resource, app.Services)); 333await eventing.PublishAsync(new ResourceReadyEvent(mongo1.Resource, app.Services), staleReadyCts.Token); 337await eventing.PublishAsync(new ResourceReadyEvent(mongo1.Resource, app.Services));
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 (35)
AddRedisTests.cs (30)
39var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 67var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 98var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 117var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 134var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 151var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 176var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 205var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 231var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 300var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 301var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 304await eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 325var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 326var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 329await eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 530var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 561await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 587await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 608await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 811var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 837var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 932var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 935var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 971var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 973await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel)); 975var args = await ArgumentEvaluator.GetArgumentListAsync(redis.Resource, app.Services).AsTask().WaitAsync(TimeSpan.FromSeconds(60)); 1005var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1008var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 1033var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1036var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
RedisFunctionalTests.cs (5)
295var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 630var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 665var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 784var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 794var 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 (929)
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); 1296var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1315app.Services.GetRequiredService<IConfiguration>(), 1316app.Services.GetRequiredService<ProfilingTelemetry>(), 1317app.Services); 1355var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1363app.Services.GetRequiredService<IConfiguration>(), 1364app.Services.GetRequiredService<ProfilingTelemetry>(), 1365app.Services); 1391var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1399app.Services.GetRequiredService<IConfiguration>(), 1400app.Services.GetRequiredService<ProfilingTelemetry>(), 1401app.Services); 1426app.Services.GetRequiredService<IConfiguration>(), 1427app.Services.GetRequiredService<ProfilingTelemetry>(), 1428app.Services); 1430var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1465app.Services.GetRequiredService<IConfiguration>(), 1466app.Services.GetRequiredService<ProfilingTelemetry>(), 1467app.Services); 1469var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1504app.Services.GetRequiredService<IConfiguration>(), 1505app.Services.GetRequiredService<ProfilingTelemetry>(), 1506app.Services); 1539app.Services.GetRequiredService<IConfiguration>(), 1540app.Services.GetRequiredService<ProfilingTelemetry>(), 1541app.Services); 1574app.Services.GetRequiredService<IConfiguration>(), 1575app.Services.GetRequiredService<ProfilingTelemetry>(), 1576app.Services); 1646var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1657app.Services.GetRequiredService<IConfiguration>(), 1658app.Services.GetRequiredService<ProfilingTelemetry>(), 1659app.Services); 1687app.Services.GetRequiredService<IConfiguration>(), 1688app.Services.GetRequiredService<ProfilingTelemetry>(), 1689app.Services); 1713var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1728app.Services.GetRequiredService<IConfiguration>(), 1729app.Services.GetRequiredService<ProfilingTelemetry>(), 1730app.Services); 1758var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1772app.Services.GetRequiredService<IConfiguration>(), 1773app.Services.GetRequiredService<ProfilingTelemetry>(), 1774app.Services); 1804var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1816app.Services.GetRequiredService<IConfiguration>(), 1817app.Services.GetRequiredService<ProfilingTelemetry>(), 1818app.Services); 1846var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1860app.Services.GetRequiredService<IConfiguration>(), 1861app.Services.GetRequiredService<ProfilingTelemetry>(), 1862app.Services); 1893var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1908app.Services.GetRequiredService<IConfiguration>(), 1909app.Services.GetRequiredService<ProfilingTelemetry>(), 1910app.Services); 1939var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 1944var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 1960app.Services.GetRequiredService<IConfiguration>(), 1961app.Services.GetRequiredService<ProfilingTelemetry>(), 1962app.Services); 1999var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 2018app.Services.GetRequiredService<IConfiguration>(), 2019app.Services.GetRequiredService<ProfilingTelemetry>(), 2020app.Services); 2054var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 2069app.Services.GetRequiredService<IConfiguration>(), 2070app.Services.GetRequiredService<ProfilingTelemetry>(), 2071app.Services); 2102var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 2109app.Services.GetRequiredService<IConfiguration>(), 2110app.Services.GetRequiredService<ProfilingTelemetry>(), 2111app.Services); 2163var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2168var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 2177app.Services.GetRequiredService<IConfiguration>(), 2178app.Services.GetRequiredService<ProfilingTelemetry>(), 2179app.Services); 2288app.Services.GetRequiredService<IConfiguration>(), 2289app.Services.GetRequiredService<ProfilingTelemetry>(), 2290app.Services); 2343app.Services.GetRequiredService<IConfiguration>(), 2344app.Services.GetRequiredService<ProfilingTelemetry>(), 2345app.Services); 2404app.Services.GetRequiredService<IConfiguration>(), 2405app.Services.GetRequiredService<ProfilingTelemetry>(), 2406app.Services); 2473app.Services.GetRequiredService<IConfiguration>(), 2474app.Services.GetRequiredService<ProfilingTelemetry>(), 2475app.Services); 2550app.Services.GetRequiredService<IConfiguration>(), 2551app.Services.GetRequiredService<ProfilingTelemetry>(), 2552app.Services); 2600app.Services.GetRequiredService<IConfiguration>(), 2601app.Services.GetRequiredService<ProfilingTelemetry>(), 2602app.Services); 2655app.Services.GetRequiredService<IConfiguration>(), 2656app.Services.GetRequiredService<ProfilingTelemetry>(), 2657app.Services); 2687app.Services.GetRequiredService<IConfiguration>(), 2688app.Services.GetRequiredService<ProfilingTelemetry>(), 2689app.Services); 2714app.Services.GetRequiredService<IConfiguration>(), 2715app.Services.GetRequiredService<ProfilingTelemetry>(), 2716app.Services); 2743app.Services.GetRequiredService<IConfiguration>(), 2744app.Services.GetRequiredService<ProfilingTelemetry>(), 2745app.Services); 2764app.Services.GetRequiredService<IConfiguration>(), 2765app.Services.GetRequiredService<ProfilingTelemetry>(), 2766app.Services); 2797app.Services.GetRequiredService<IConfiguration>(), 2798app.Services.GetRequiredService<ProfilingTelemetry>(), 2799app.Services);
Backchannel\AuxiliaryBackchannelTests.cs (16)
38var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 78var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 119var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 154var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 195var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 239var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 283var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 319var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 360var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 397var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 417var lifetime = app.Services.GetService<IHostApplicationLifetime>(); 446var 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 (214)
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>(); 632var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 670var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 701var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 741var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 766var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 803var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 821var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 850var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 885var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 928var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 966var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 994var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1025var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1057var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1087var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1127var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1170var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1207var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1251var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1289var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1330var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1364var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1402var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1449var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1491var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1541var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1563var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1599var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1703var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1775var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1868var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1931var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2021var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2122var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2202var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2287var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2382var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2538var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2660var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2713var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2769var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2863var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2987var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3057var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3136var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3255var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3317var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3382var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3474var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3521var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3564var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3601var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3646var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3675var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3710var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3776var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3794var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3827var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3898var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3947var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 3982var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4029var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4071var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4110var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4135var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4170var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4201var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4231var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4268var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4291var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4338var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4362var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4397var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4442var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4474var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4510var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4550var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4581var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4612var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4642var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4671var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4737var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4786var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4838var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 4865var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4902var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4928var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 4963var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5003var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5043var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5087var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5133var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5175var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 5217var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5254var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5272var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5333var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5370var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5425var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5476var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5525var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5619var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5652var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5700var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5737var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5778var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5814var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5856var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5898var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5940var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 5977var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6014var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6017await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 6055var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6057await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 6090var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6129var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6171var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6206var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6254var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6311var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6363var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6408var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6479var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6583app.Services.GetRequiredService<DistributedApplicationModel>(), 6725app.Services.GetRequiredService<DistributedApplicationModel>(), 6812var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 6902var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7017var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7070var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7118var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7162var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7204var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7243var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7301var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7341var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7368var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7422var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7453var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7501var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7542var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7587var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7623var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7662var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7699var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7735var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7770var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7821var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7859var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7894var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7933var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 7968var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8032var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8064var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8104var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8158var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8213var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8264var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8317var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8350var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8394var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8436var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8483var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8525var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8562var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8606var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8682var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8756var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8818var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8877var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8913var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 8950var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9047var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9079var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9129var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9164var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9205var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9244var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9289var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9335var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9388var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9441var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9480var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9519var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9580var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9650var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9687var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9778var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9819var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9870var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9911var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9960var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 9967await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 10005var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 10034var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 10038await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 10080var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 10084await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, distributedAppModel)); 10280var 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 (14)
57var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 60var eventingSubscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 69var options = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 80var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 91var pipelineOptions = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 102var pipelineOptions = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 113var config = app.Services.GetRequiredService<IConfiguration>(); 187var filterOptions = app.Services.GetRequiredService<IOptions<LoggerFilterOptions>>().Value; 211var outputService = app.Services.GetRequiredService<IPipelineOutputService>(); 223var outputService = app.Services.GetRequiredService<IPipelineOutputService>(); 234var outputService = app.Services.GetRequiredService<IPipelineOutputService>(); 244var config = app.Services.GetRequiredService<IConfiguration>(); 257var logger = app.Services.GetRequiredService<ILoggerFactory>().CreateLogger("AspireLogLevelTest"); 356var 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>>(); 341var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 384var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 385var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 538var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 539var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 540var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 625var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 626var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 627var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 779var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 836var s = app.Services.GetRequiredService<IKubernetesService>(); 893var s = app.Services.GetRequiredService<IKubernetesService>(); 937var s = app.Services.GetRequiredService<IKubernetesService>(); 1011var s = app.Services.GetRequiredService<IKubernetesService>(); 1012var dc = app.Services.GetRequiredService<IDeveloperCertificateService>(); 1105var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 1106var s = app.Services.GetRequiredService<IKubernetesService>(); 1143var s = app.Services.GetRequiredService<IKubernetesService>(); 1144var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1183var s = app.Services.GetRequiredService<IKubernetesService>(); 1184var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1212var events = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 1219var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1220var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 1221var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1259var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1260var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 1261var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1306var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1310var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1355var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1359var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1387var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1391var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1424var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1428var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1457var dashboardServiceHost = app.Services.GetRequiredService<DashboardServiceHost>(); 1487var dashboardServiceHost = app.Services.GetRequiredService<DashboardServiceHost>(); 1520var s = app.Services.GetRequiredService<IKubernetesService>(); 1522var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1548var s = app.Services.GetRequiredService<IKubernetesService>(); 1550var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1576var s = app.Services.GetRequiredService<IKubernetesService>(); 1578var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1605var s = app.Services.GetRequiredService<IKubernetesService>(); 1607var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1630var s = app.Services.GetRequiredService<IKubernetesService>(); 1853var s = app.Services.GetRequiredService<IKubernetesService>(); 1927var s = app.Services.GetRequiredService<IKubernetesService>(); 2017var s = app.Services.GetRequiredService<IKubernetesService>(); 2058var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 2114var rns = secondRun.App.Services.GetRequiredService<ResourceNotificationService>(); 2160var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 2211var s = app.Services.GetRequiredService<IKubernetesService>(); 2213var lifecycles = app.Services.GetServices<IDistributedApplicationLifecycleHook>(); 2240var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 2241var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 2305var 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>>(), 2527var 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 (12)
43var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 68var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 93serviceProvider: app.Services).DefaultTimeout(); 115serviceProvider: app.Services).DefaultTimeout(); 138serviceProvider: app.Services).DefaultTimeout(); 171var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 202var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 231var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 256var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 312var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 313var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 323var 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 (25)
294var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 295await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 301var environment = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(host, serviceProvider: app.Services); 321var parentEnvironment = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource.Resource, serviceProvider: app.Services); 344var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 345await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 422var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 423await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 510var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 511await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 562var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 563await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 958var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 959await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 974var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 975await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 992var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 993await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1322var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1323await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1344var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1345await builder.Eventing.PublishAsync(new BeforeStartEvent(app.Services, model)); 1382var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1390var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1391var executionContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>();
WithUrlsTests.cs (8)
383var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 408var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 439var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 470var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 586var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 667var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 968var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 1020var rns = app.Services.GetRequiredService<ResourceNotificationService>();
WithVolumeTests.cs (14)
29app.Services); 49var store = app.Services.GetRequiredService<IAspireStore>(); 58serviceProvider: app.Services); 61serviceProvider: app.Services); 82app.Services); 86app.Services); 143serviceProvider: app.Services); 147var storePrefix = Path.GetFullPath(app.Services.GetRequiredService<IAspireStore>().BasePath) + Path.DirectorySeparatorChar; 187serviceProvider: app.Services); 222var store = app.Services.GetRequiredService<IAspireStore>(); 227serviceProvider: app.Services); 261app.Services)); 282app.Services); 300app.Services);
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>();