Implemented interface member:
property
Services
Microsoft.Extensions.Hosting.IHost.Services
841 references to Services
Aspire.Hosting (2)
DistributedApplication.cs (1)
282/// exposes a <see cref="Services"/> property which allows developers to get services from the
DistributedApplicationBuilder.cs (1)
735_executionContextOptions.ServiceProvider = application.Services.GetRequiredService<IServiceProvider>();
Aspire.Hosting.Azure.Kusto.Tests (7)
KustoFunctionalTests.cs (7)
55var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 107var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 187var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 191var snapshot = app.Services.GetRequiredService<FakeLogCollector>().GetSnapshot(); 214var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 222var snapshot = app.Services.GetRequiredService<FakeLogCollector>().GetSnapshot(); 253var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Azure.Tests (175)
AzureAIFoundryExtensionsTests.cs (3)
89var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 94var foundryManager = app.Services.GetRequiredService<FoundryLocalManager>(); 171var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureAppConfigurationExtensionsTests.cs (1)
23var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureAppServiceTests.cs (25)
39var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 68var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 101var reporter = app.Services.GetRequiredService<IPipelineActivityReporter>() as TestPipelineActivityReporter; 142var reporter = app.Services.GetRequiredService<IPipelineActivityReporter>() as TestPipelineActivityReporter; 176var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 213var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 241var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 279var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 316var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 357var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 466var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 488var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 519var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 555var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 591var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 626var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 700var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 731var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 778var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 799var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 821var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 843var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 869var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 900var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 932var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureBicepProvisionerTests.cs (2)
64var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 68var rns = app.Services.GetRequiredService<ResourceNotificationService>();
AzureBicepResourceTests.cs (1)
82var eventingServices = app.Services.GetServices<IDistributedApplicationEventingSubscriber>();
AzureContainerAppsTests.cs (57)
40var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 74var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 104var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 146var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 178var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 222var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 252var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 326var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 403var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 444var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 474var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 510var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 546var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 584var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 624var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 656var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 689var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 740var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 822var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 865var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 896var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 928var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 957var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 994var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1038var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1079var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1117var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1138var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1157var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1177var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1199var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1230var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1261var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1288var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1319var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1375var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1426var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1496var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1518var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1548var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1594var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1713var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1735var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1772var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1813var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1853var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1883var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1921var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1961var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2001var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2046var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2076var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2124var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2148var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2172var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2211var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2265var model = app.Services.GetRequiredService<DistributedApplicationModel>();
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 (3)
202var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 296var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 333var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureDeployerTests.cs (13)
179var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 237var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 301var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 365var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 432var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 549var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 730var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 790var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 1018var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder; 1308var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 1397var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 1429var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>(); 1492var deploymentStateManager = app.Services.GetRequiredService<IDeploymentStateManager>();
AzureEventHubsExtensionsTests.cs (4)
289var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 353var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = eventHubsEmulatorResource, ServiceProvider = app.Services }, CancellationToken.None); 414var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = eventHubsEmulatorResource, ServiceProvider = app.Services }, CancellationToken.None); 488var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = eventHubsEmulatorResource, ServiceProvider = app.Services }, CancellationToken.None);
AzureFunctionsTests.cs (8)
162var model = host.Services.GetRequiredService<DistributedApplicationModel>(); 188var model = host.Services.GetRequiredService<DistributedApplicationModel>(); 287var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 320var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 348var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 377var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 408var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 729var 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>();
AzureOpenAIExtensionsTests.cs (1)
60var 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 (5)
61var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 151var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 285var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 320var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureSearchExtensionsTests.cs (1)
40var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureServiceBusExtensionsTests.cs (6)
135var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 369var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, ServiceProvider = app.Services }, CancellationToken.None); 468var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, ServiceProvider = app.Services }, CancellationToken.None); 524var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, ServiceProvider = app.Services }, CancellationToken.None); 583var configFiles = await configAnnotation.Callback(new ContainerFileSystemCallbackContext { Model = serviceBusEmulatorResource, ServiceProvider = app.Services }, CancellationToken.None); 726var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureSignalRExtensionsTests.cs (2)
21var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 43var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureStorageEmulatorFunctionalTests.cs (6)
47var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 92var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 135var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 189var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 222var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 262var rns = app.Services.GetRequiredService<ResourceNotificationService>();
AzureStorageExtensionsTests.cs (1)
635var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureUserAssignedIdentityTests.cs (7)
29var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 48var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 69var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 115var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 152var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 208var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 285var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureWebPubSubExtensionsTests.cs (1)
287var model = app.Services.GetRequiredService<DistributedApplicationModel>();
ContainerRegistryTests.cs (4)
29var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 59var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 97var publisher = app.Services.GetRequiredKeyedService<IDistributedApplicationPublisher>("test-publisher") as ContainerRegistryValidatingPublisher; 99var model = app.Services.GetRequiredService<DistributedApplicationModel>();
ExistingAzureResourceTests.cs (1)
76var model = app.Services.GetRequiredService<DistributedApplicationModel>();
RoleAssignmentTests.cs (5)
236var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 265var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 295var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 323var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 347var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Containers.Tests (17)
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());
WithDockerfileTests.cs (7)
79var collector = app.Services.GetFakeLogCollector(); 209var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 241var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 469var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 539var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 927var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 968var appModel1 = app1.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (1)
185var mockImageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>() as MockImageBuilder;
DockerComposeTests.cs (1)
827var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Garnet.Tests (6)
AddGarnetTests.cs (6)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 50var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 343var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 364var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 381var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.JavaScript.Tests (41)
AddNodeAppTests.cs (3)
237var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 264var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 294var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AddViteAppTests.cs (8)
242var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 267var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 299var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 359var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 410var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 463var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 522var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 597var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
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 (16)
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>();
ResourceCreationTests.cs (8)
20var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 38var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 56var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 76var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 99var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 136var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 171var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 203var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Kafka.Tests (4)
AddKafkaTests.cs (4)
24var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 66var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 213var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 218new BeforeResourceStartedEvent(kafkaUiResource, app.Services),
Aspire.Hosting.Keycloak.Tests (3)
KeycloakPublicApiTests.cs (2)
167var entries = await containerAnnotation.Callback(new() { Model = keycloakResource, ServiceProvider = app.Services }, CancellationToken.None); 194var entries = await containerAnnotation.Callback(new() { Model = keycloakResource, ServiceProvider = app.Services }, CancellationToken.None);
KeycloakResourceBuilderTests.cs (1)
23var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesEnvironmentResourceTests.cs (1)
147var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Maui.Tests (2)
MauiPlatformExtensionsTests.cs (2)
249await app.Services.GetRequiredService<IDistributedApplicationEventing>() 250.PublishAsync(new BeforeResourceStartedEvent(platform.Resource, app.Services), CancellationToken.None);
Aspire.Hosting.Milvus.Tests (3)
AddMilvusTests.cs (3)
25var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 55var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 188var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.MongoDB.Tests (4)
AddMongoDBTests.cs (4)
23var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 51var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 82var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 300var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.MySql.Tests (11)
AddMySqlTests.cs (10)
44var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 83var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 121var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 140var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 244await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(myAdmin, app.Services)); 272var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 275builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(myAdmin, app.Services)); 364var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 380var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 385new BeforeResourceStartedEvent(phpMyAdminResource, app.Services),
MySqlFunctionalTests.cs (1)
582var 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)
52var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 106var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 176var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 198var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 379var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 478var entries = await createServers.Callback(new() { Model = pgadmin, ServiceProvider = app.Services }, CancellationToken.None); 532var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 542var entries = await createBookmarks.Callback(new() { Model = pgweb, ServiceProvider = app.Services }, CancellationToken.None);
PostgresFunctionalTests.cs (1)
564var 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 (51)
AddPythonAppTests.cs (51)
155var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 194var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 237var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 414var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 447var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 508var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 538var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 571var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 616var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 650var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 689var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 723var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 754var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 774var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 813var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 832var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 857var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 888var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 913var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 932var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 951var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 972var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1008var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1042var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1074var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1098var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1120var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1146var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1401var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1439var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1479var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1516var commandArguments = await ArgumentEvaluator.GetArgumentListAsync(resource, app.Services); 1872var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1907var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1961var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1982var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2009var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2037var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2061var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2093var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2136var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2166var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2202var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2238var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2267var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2299var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2329var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2362var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2389var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2390var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 2391await eventing.PublishAsync(new BeforeStartEvent(app.Services, appModel), CancellationToken.None);
Aspire.Hosting.Qdrant.Tests (4)
AddQdrantTests.cs (4)
45var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 84var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 117var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 291var 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.Redis.Tests (20)
AddRedisTests.cs (15)
35var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 63var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 94var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 111var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 126var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 484var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 513await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 539await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 560await builder.Eventing.PublishAsync<BeforeResourceStartedEvent>(new(commander, app.Services)); 712var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 736var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 831var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 834var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 848var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 851var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
RedisFunctionalTests.cs (5)
151var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 488var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 523var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 624var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 634var clientFactory = app.Services.GetRequiredService<IHttpClientFactory>();
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 (6)
DistributedApplicationFactory.cs (2)
172_shutdownTimeout = application.Services.GetService<IOptions<HostOptions>>()?.Value.ShutdownTimeout ?? _shutdownTimeout; 428_hostApplicationLifetime = app.Services.GetService<IHostApplicationLifetime>()
DistributedApplicationHostingTestingExtensions.cs (3)
28var clientFactory = app.Services.GetRequiredService<IHttpClientFactory>(); 95var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 136var lifetime = app.Services.GetRequiredService<IHostApplicationLifetime>();
DistributedApplicationTestingBuilder.cs (1)
300public IServiceProvider Services => innerApp.Services;
Aspire.Hosting.Testing.Tests (11)
TestingBuilderTests.cs (4)
105var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 167var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 408var hostEnvironment = app.Services.GetRequiredService<IHostEnvironment>(); 424var config = app.Services.GetRequiredService<IConfiguration>();
TestingFactoryTests.cs (3)
43var appModel = _app.Services.GetRequiredService<DistributedApplicationModel>(); 65var appModel = _app.Services.GetRequiredService<IHostEnvironment>(); 74var config = _app.Services.GetRequiredService<IConfiguration>();
tests\Aspire.Hosting.Tests\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 (409)
AddConnectionStringTests.cs (2)
26var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 55var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AddParameterTests.cs (11)
25var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 57var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 93var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 145var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 204var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 273var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 305var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 520var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 544var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 567var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 593var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
AppHostSmokeTests.cs (1)
91var dcpOptions = host.Services.GetRequiredService<IOptions<DcpOptions>>();
AspireStoreTests.cs (3)
37var store = app.Services.GetRequiredService<IAspireStore>(); 61var store = app.Services.GetRequiredService<IAspireStore>(); 138return app.Services.GetRequiredService<IAspireStore>();
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (4)
46var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 58app.Services); 91var notificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 131app.Services);
Backchannel\AuxiliaryBackchannelTests.cs (14)
36var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 76var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 118var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 153var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 194var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 238var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 284var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 315var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 356var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 393var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 413var lifetime = app.Services.GetService<IHostApplicationLifetime>(); 442var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 480var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>(); 523var service = app.Services.GetRequiredService<AuxiliaryBackchannelService>();
Backchannel\Exec\ExecTestsBase.cs (1)
28var appHostRpcTarget = app.Services.GetRequiredService<AppHostRpcTarget>();
Codespaces\CodespacesUrlRewriterTests.cs (1)
34var collector = app.Services.GetFakeLogCollector();
ContainerRegistryResourceTests.cs (29)
139var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 154var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 170var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 186var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 290var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 515var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 521var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 539var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 542var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 563var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 566var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 585var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 588var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 608var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 611var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 644var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 647var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 668var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 671var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 695var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 701var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 719var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 722var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 739var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 742var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 760var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 763var beforeStartEvent = new BeforeStartEvent(app.Services, appModel); 781var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 784var beforeStartEvent = new BeforeStartEvent(app.Services, appModel);
Dashboard\DashboardOptionsTests.cs (1)
31var dashboardOptions = app.Services.GetRequiredService<IOptions<DashboardOptions>>().Value;
Dashboard\DashboardResourceTests.cs (20)
45var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 73var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 219var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 253var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 294var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 333var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 369var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 407var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 418var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 453var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 459var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 480var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 496var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 547var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 561var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 562var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 613var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 658var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 673app.Services.GetRequiredService<DistributedApplicationExecutionContext>(),
Dcp\DcpCliArgsTests.cs (1)
54var dcpOptions = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value;
Dcp\DcpExecutorTests.cs (54)
39var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 64var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 148var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 183var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 226var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 275var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 307var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 339var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 372var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 409var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 429var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 463var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 497var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 561var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 583var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 619var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 723var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 803var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 897var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 942var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 979var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1014var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1074var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1095var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1131var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1168var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1205var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1235var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1272var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1295var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1333var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1373var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1397var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1432var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1468var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1508var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1539var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1570var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1600var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1629var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1677var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1727var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1764var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1805var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1841var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1883var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1925var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1967var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2004var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2041var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2084var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2114var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2164var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 2201var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Dcp\DcpHostNotificationTests.cs (6)
56var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 105var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 160var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 215var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 265var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 333var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationBuilderTests.cs (9)
41var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 44var eventingSubscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 52var options = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 63var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 74var pipelineOptions = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 85var pipelineOptions = app.Services.GetRequiredService<IOptions<PipelineOptions>>(); 96var config = app.Services.GetRequiredService<IConfiguration>(); 106var config = app.Services.GetRequiredService<IConfiguration>(); 119var config = app.Services.GetRequiredService<IConfiguration>();
DistributedApplicationModelExtensionsTests.cs (2)
26var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 61var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationTests.cs (60)
135var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 136var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 137var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 180var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 181var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 182var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 272var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 315var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 316var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 389var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 390var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 391var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 468var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 469var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 470var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 630var logger = app.Services.GetRequiredService<ILogger<DistributedApplicationTests>>(); 687var s = app.Services.GetRequiredService<IKubernetesService>(); 744var s = app.Services.GetRequiredService<IKubernetesService>(); 788var s = app.Services.GetRequiredService<IKubernetesService>(); 862var s = app.Services.GetRequiredService<IKubernetesService>(); 863var dc = app.Services.GetRequiredService<IDeveloperCertificateService>(); 956var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 957var s = app.Services.GetRequiredService<IKubernetesService>(); 994var s = app.Services.GetRequiredService<IKubernetesService>(); 995var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1034var s = app.Services.GetRequiredService<IKubernetesService>(); 1035var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1063var events = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 1070var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1071var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 1072var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1110var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1111var orchestrator = app.Services.GetRequiredService<ApplicationOrchestrator>(); 1112var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1154var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1158var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1203var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1207var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1235var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1239var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1272var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1276var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1306var s = app.Services.GetRequiredService<IKubernetesService>(); 1308var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1334var s = app.Services.GetRequiredService<IKubernetesService>(); 1336var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1362var s = app.Services.GetRequiredService<IKubernetesService>(); 1364var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1391var s = app.Services.GetRequiredService<IKubernetesService>(); 1393var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1416var s = app.Services.GetRequiredService<IKubernetesService>(); 1475var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1493var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix; 1634var s = app.Services.GetRequiredService<IKubernetesService>(); 1702var s = app.Services.GetRequiredService<IKubernetesService>(); 1787var s = app.Services.GetRequiredService<IKubernetesService>(); 1814var s = app.Services.GetRequiredService<IKubernetesService>(); 1816var lifecycles = app.Services.GetServices<IDistributedApplicationLifecycleHook>(); 1842var kubernetes = app.Services.GetRequiredService<IKubernetesService>(); 1843var suffix = app.Services.GetRequiredService<IOptions<DcpOptions>>().Value.ResourceNameSuffix;
Eventing\DistributedApplicationBuilderEventingTests.cs (3)
168var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 293var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 302var testEvent = new ResourceStoppedEvent(resource.Resource, app.Services, testResourceEvent);
ExternalServiceTests.cs (4)
172var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Publish, app.Services).DefaultTimeout(); 404var healthCheckService = app.Services.GetService<HealthCheckService>(); 425var healthCheckService = app.Services.GetService<HealthCheckService>(); 442var healthCheckService = app.Services.GetRequiredService<HealthCheckService>();
Health\ResourceHealthCheckServiceTests.cs (6)
158var healthService = app.Services.GetRequiredService<ResourceHealthCheckService>(); 221var logger = app.Services.GetRequiredService<ILogger<ResourceHealthCheckServiceTests>>(); 222var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>(); 261var logger = app.Services.GetRequiredService<ILogger<ResourceHealthCheckServiceTests>>(); 262var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>(); 482var rhcs = app.Services.GetRequiredService<ResourceHealthCheckService>();
HealthCheckTests.cs (2)
101var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 138var collector = app.Services.GetFakeLogCollector();
KestrelConfigTests.cs (1)
353var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Orchestrator\ApplicationOrchestratorTests.cs (15)
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>(); 448await applicationEventing.PublishAsync(new ConnectionStringAvailableEvent(resource.Resource, app.Services), CancellationToken.None); 609var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 656var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 705var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 762var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 817var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Orchestrator\ParameterProcessorTests.cs (11)
585var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 610var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 630var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 656var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 679var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 701var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 726var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 757var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 795var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 799var parameterProcessor = app.Services.GetRequiredService<ParameterProcessor>(); 828var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Orchestrator\RelationshipEvaluatorTests.cs (5)
28var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 60var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 83var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 106var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 129var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Pipelines\DistributedApplicationPipelineTests.cs (4)
939app.Services.GetRequiredService<DistributedApplicationModel>(), 940app.Services.GetRequiredService<DistributedApplicationExecutionContext>(), 941app.Services, 942app.Services.GetRequiredService<ILogger<DistributedApplicationPipelineTests>>(),
ProjectResourceTests.cs (23)
128var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 237var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 264var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 282var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 298var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 348var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 368var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 411var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 433var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 458var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 488var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 507var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 531var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 579var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 679var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 710var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 728var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 746var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 765var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 783var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 828var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 861var fakeContainerRuntime = (FakeContainerRuntime)app.Services.GetRequiredService<IContainerRuntime>(); 876var mockImageBuilder = (MockImageBuilder)app.Services.GetRequiredService<IResourceContainerImageManager>();
Publishing\ResourceContainerImageManagerTests.cs (55)
37var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 41var collector = app.Services.GetFakeLogCollector(); 69var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 73var collector = app.Services.GetFakeLogCollector(); 100var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 104var collector = app.Services.GetFakeLogCollector(); 137var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 141var collector = app.Services.GetFakeLogCollector(); 171var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 175var collector = app.Services.GetFakeLogCollector(); 201var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 205var collector = app.Services.GetFakeLogCollector(); 237var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 241var collector = app.Services.GetFakeLogCollector(); 276var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 280var collector = app.Services.GetFakeLogCollector(); 311var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 315var collector = app.Services.GetFakeLogCollector(); 343var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 347var collector = app.Services.GetFakeLogCollector(); 372var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 378var collector = app.Services.GetFakeLogCollector(); 422var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 428var collector = app.Services.GetFakeLogCollector(); 451var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 475var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 510var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 541var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 573var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 610var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 618var collector = app.Services.GetFakeLogCollector(); 657var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 661var collector = app.Services.GetFakeLogCollector(); 729var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 824var imageBuilder = app.Services.GetRequiredService<IResourceContainerImageManager>(); 863var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 865app.Services, 902var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 904app.Services, 929var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 931app.Services, 956var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 958app.Services, 1005var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1007app.Services, 1036var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1038app.Services, 1069var logger = app.Services.GetRequiredService<ILogger<ResourceContainerImageBuilderTests>>(); 1071app.Services, 1078Assert.Equal(app.Services, capturedServices); 1109var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1157var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1190var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1233var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>(); 1266var imageManager = app.Services.GetRequiredService<IResourceContainerImageManager>();
RequiredCommandAnnotationTests.cs (43)
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)); 337var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 340var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 342await eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services)); 343await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services)); 362var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 364var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 367var publishTask = eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 394var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 396var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 398await eventing.PublishAsync(new BeforeResourceStartedEvent(resource, app.Services)); 419var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 422var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 425var publishTask1 = eventing.PublishAsync(new BeforeResourceStartedEvent(resource1, app.Services)); 431await eventing.PublishAsync(new BeforeResourceStartedEvent(resource2, app.Services)); 443var eventSubscribers = app.Services.GetServices<IDistributedApplicationEventingSubscriber>(); 444var eventing = app.Services.GetRequiredService<IDistributedApplicationEventing>(); 445var execContext = app.Services.GetRequiredService<DistributedApplicationExecutionContext>();
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));
WaitForTests.cs (1)
576var collector = app.Services.GetFakeLogCollector();
WithEndpointTests.cs (1)
209var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
WithEnvironmentTests.cs (1)
29var serviceProvider = app.Services.GetRequiredService<IServiceProvider>();
WithHttpCommandTests.cs (1)
33var httpClientFactory = app.Services.GetService<IHttpClientFactory>();
WithOtlpExporterTests.cs (3)
41var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 64var serviceProvider = app.Services.GetRequiredService<IServiceProvider>(); 86var serviceProvider = app.Services.GetRequiredService<IServiceProvider>();
WithUrlsTests.cs (7)
379var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 406var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 439var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 468var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 586var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 669var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 972var rns = 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)
290Services = app.Services, 321Services = app.Services, 353Services = app.Services, 391Services = app.Services, 418var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 420var beforeStartEvent = new BeforeStartEvent(app.Services, model); 443var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 445var beforeStartEvent = new BeforeStartEvent(app.Services, model);
Aspire.Playground.Tests (11)
AppHostTests.cs (1)
68var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
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.Tests\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)
64var notifications = app.Services.GetRequiredService<ResourceNotificationService>();