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", _ => { });
42 references to AzureContainerAppEnvironmentResource
Aspire.Hosting.Azure.AppContainers (21)
AzureContainerAppEnvironmentResource.cs (1)
22/// Initializes a new instance of the <see cref="AzureContainerAppEnvironmentResource"/> class.
AzureContainerAppExtensions.cs (13)
56public static IResourceBuilder<AzureContainerAppEnvironmentResource> AddAzureContainerAppEnvironment(this IDistributedApplicationBuilder builder, string name) 60var containerAppEnvResource = new AzureContainerAppEnvironmentResource(name, static infra => 62var appEnvResource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 170var resource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 356public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzdResourceNaming(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder) 368public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithDashboard(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, bool enable = true) 381public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzureLogAnalyticsWorkspace(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, IResourceBuilder<AzureLogAnalyticsWorkspaceResource> workspaceBuilder) 392private static AzureContainerRegistryResource CreateDefaultAzureContainerRegistry(IDistributedApplicationBuilder builder, string name, AzureContainerAppEnvironmentResource containerAppEnvironment)
AzureContainerAppResource.cs (2)
55var containerAppEnv = (AzureContainerAppEnvironmentResource)deploymentTargetAnnotation.ComputeEnvironment!;
AzureContainerAppsInfrastructure.cs (3)
23var caes = @event.Model.Resources.OfType<AzureContainerAppEnvironmentResource>().ToArray(); 31foreach (var environment in caes) 71throw 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)
707var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1235Assert.Empty(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1266var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1323var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1374var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1443var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1465var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>());
AzureContainerRegistryTests.cs (2)
52var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>());
AzureUserAssignedIdentityTests.cs (3)
75r => Assert.IsType<AzureContainerAppEnvironmentResource>(r), 158r => Assert.IsType<AzureContainerAppEnvironmentResource>(r), 291r => Assert.IsType<AzureContainerAppEnvironmentResource>(r),
ContainerRegistryTests.cs (2)
30var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>());