2 instantiations of AzureContainerAppEnvironmentResource
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppExtensions.cs (1)
60var containerAppEnvResource = new AzureContainerAppEnvironmentResource(name, static infra =>
Aspire.Hosting.Azure.Tests (1)
AzureContainerAppEnvironmentExtensionsTests.cs (1)
16var containerAppEnvironmentResource = new AzureContainerAppEnvironmentResource("test-container-app-env", _ => { });
41 references to AzureContainerAppEnvironmentResource
Aspire.Hosting.Azure.AppContainers (20)
AzureContainerAppEnvironmentResource.cs (1)
22/// Initializes a new instance of the <see cref="AzureContainerAppEnvironmentResource"/> class.
AzureContainerAppExtensions.cs (12)
56public static IResourceBuilder<AzureContainerAppEnvironmentResource> AddAzureContainerAppEnvironment(this IDistributedApplicationBuilder builder, string name) 60var containerAppEnvResource = new AzureContainerAppEnvironmentResource(name, static infra => 62var appEnvResource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 166var resource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 347public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzdResourceNaming(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder) 359public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithDashboard(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, bool enable = true) 372public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzureLogAnalyticsWorkspace(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, IResourceBuilder<AzureLogAnalyticsWorkspaceResource> workspaceBuilder)
AzureContainerAppResource.cs (2)
79var containerAppEnv = (AzureContainerAppEnvironmentResource)deploymentTargetAnnotation.ComputeEnvironment!;
AzureContainerAppsInfrastructure.cs (3)
23var caes = @event.Model.Resources.OfType<AzureContainerAppEnvironmentResource>().ToArray(); 31foreach (var environment in caes) 64throw new InvalidOperationException($"Resource '{r.Name}' is configured to publish as an Azure Container App, but there are no '{nameof(AzureContainerAppEnvironmentResource)}' resources. Ensure you have added one by calling '{nameof(AzureContainerAppExtensions.AddAzureContainerAppEnvironment)}'.");
ContainerAppEnvironmentContext.cs (2)
15AzureContainerAppEnvironmentResource environment, 22public AzureContainerAppEnvironmentResource Environment => environment;
Aspire.Hosting.Azure.Tests (21)
AzureContainerAppEnvironmentExtensionsTests.cs (1)
16var containerAppEnvironmentResource = new AzureContainerAppEnvironmentResource("test-container-app-env", _ => { });
AzureContainerAppsTests.cs (13)
705var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1233Assert.Empty(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1264var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1321var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1372var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1441var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1463var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>());
AzureContainerRegistryTests.cs (2)
49var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>());
AzureUserAssignedIdentityTests.cs (3)
74r => Assert.IsType<AzureContainerAppEnvironmentResource>(r), 156r => Assert.IsType<AzureContainerAppEnvironmentResource>(r), 287r => Assert.IsType<AzureContainerAppEnvironmentResource>(r),
ContainerRegistryTests.cs (2)
30var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>());