3 instantiations of AzureContainerAppEnvironmentResource
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppExtensions.cs (1)
64var 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)
60public static IResourceBuilder<AzureContainerAppEnvironmentResource> AddAzureContainerAppEnvironment(this IDistributedApplicationBuilder builder, string name) 64var containerAppEnvResource = new AzureContainerAppEnvironmentResource(name, static infra => 66var appEnvResource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 183var resource = (AzureContainerAppEnvironmentResource)infra.AspireResource; 414public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzdResourceNaming(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder) 424/// <param name="builder">The <see cref="AzureContainerAppEnvironmentResource"/> to configure.</param> 445public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithCompactResourceNaming(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder) 458public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithDashboard(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, bool enable = true) 477public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithHttpsUpgrade(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, bool upgrade = true) 491public static IResourceBuilder<AzureContainerAppEnvironmentResource> WithAzureLogAnalyticsWorkspace(this IResourceBuilder<AzureContainerAppEnvironmentResource> builder, IResourceBuilder<AzureLogAnalyticsWorkspaceResource> workspaceBuilder) 502private 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>()); 1306Assert.Empty(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1337var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1368var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1395var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1451var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1502var environment = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1571var containerAppEnvResource = Assert.Single(model.Resources.OfType<AzureContainerAppEnvironmentResource>()); 1593var 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>());