3 instantiations of AzureContainerAppEnvironmentResource
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppExtensions.cs (1)
63var containerAppEnvResource = new AzureContainerAppEnvironmentResource(name, static infra =>
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppEnvironmentExtensionsTests.cs (2)
19var containerAppEnvironmentResource = new AzureContainerAppEnvironmentResource("test-container-app-env", _ => { }); 118var environment = new AzureContainerAppEnvironmentResource("env", _ => { });
52 references to AzureContainerAppEnvironmentResource
Aspire.Hosting.Azure.AppContainers (26)
AzureContainerAppEnvironmentResource.cs (1)
29/// Initializes a new instance of the <see cref="AzureContainerAppEnvironmentResource"/> class.
AzureContainerAppExtensions.cs (18)
59public static IResourceBuilder<AzureContainerAppEnvironmentResource> AddAzureContainerAppEnvironment(this IDistributedApplicationBuilder builder, string name) 63var containerAppEnvResource = new AzureContainerAppEnvironmentResource(name, static infra => 65var appEnvResource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 182var resource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 412public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzdResourceNaming(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder) 422/// <param name="builder">The <see cref="AzureContainerAppEnvironmentResource"/> to configure.</param> 442public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithCompactResourceNaming(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder) 454public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithDashboard(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, bool enable = true) 472public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithHttpsUpgrade(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, bool upgrade = true) 485public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzureLogAnalyticsWorkspace(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, IResourceBuilder<AzureLogAnalyticsWorkspaceResource> workspaceBuilder) 496private static AzureContainerRegistryResource CreateDefaultAzureContainerRegistry(IDistributedApplicationBuilder builder, string name, AzureContainerAppEnvironmentResource containerAppEnvironment)
AzureContainerAppResource.cs (2)
48var containerAppEnv = (AzureContainerAppEnvironmentResource)deploymentTargetAnnotation.ComputeEnvironment!;
AzureContainerAppsInfrastructure.cs (3)
23var caes = @event.Model.Resources.OfType<AzureContainerAppEnvironmentResource>().ToArray(); 31foreach (var environment in caes) 81throw 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 (26)
AzureContainerAppEnvironmentExtensionsTests.cs (2)
19var containerAppEnvironmentResource = new AzureContainerAppEnvironmentResource("test-container-app-env", _ => { }); 118var environment = new AzureContainerAppEnvironmentResource("env", _ => { });
AzureContainerAppsTests.cs (17)
708var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1291Assert.Empty(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1322var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1353var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1380var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1436var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1487var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1556var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1578var 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>());