5 writes to ComputeEnvironment
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
56ComputeEnvironment = environment
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceInfrastructure.cs (1)
64ComputeEnvironment = appServiceEnvironment
Aspire.Hosting.Docker (2)
DockerComposeInfrastructure.cs (2)
48ComputeEnvironment = environment, 67ComputeEnvironment = environment,
Aspire.Hosting.Kubernetes (1)
KubernetesInfrastructure.cs (1)
47ComputeEnvironment = environment
13 references to ComputeEnvironment
Aspire.Hosting (2)
ApplicationModel\ResourceExtensions.cs (2)
956return annotations.SingleOrDefault(a => a.ComputeEnvironment == selectedComputeEnvironment); 961var computeEnvironmentNames = string.Join(", ", annotations.Select(a => a.ComputeEnvironment?.Name));
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppResource.cs (1)
55var containerAppEnv = (AzureContainerAppEnvironmentResource)deploymentTargetAnnotation.ComputeEnvironment!;
Aspire.Hosting.Azure.AppService (4)
AzureAppServiceWebSiteResource.cs (4)
51var computerEnv = (AzureAppServiceEnvironmentResource)deploymentTargetAnnotation.ComputeEnvironment!; 78var computerEnv = (AzureAppServiceEnvironmentResource)deploymentTargetAnnotation.ComputeEnvironment!; 120var computerEnv = (AzureAppServiceEnvironmentResource)deploymentTargetAnnotation.ComputeEnvironment!; 238var computerEnv = (AzureAppServiceEnvironmentResource)TargetResource.GetDeploymentTargetAnnotation()!.ComputeEnvironment!;
Aspire.Hosting.Azure.Tests (4)
AzureAppServiceTests.cs (1)
44Assert.Same(env.Resource, target.ComputeEnvironment);
AzureContainerAppsTests.cs (3)
111Assert.Same(env.Resource, target.ComputeEnvironment); 153Assert.Same(infra.Resource, target.ComputeEnvironment); 184Assert.Same(env.Resource, target?.ComputeEnvironment);
Aspire.Hosting.Docker.Tests (1)
DockerComposeTests.cs (1)
42Assert.Same(composeEnv.Resource, container.Resource.GetDeploymentTargetAnnotation()?.ComputeEnvironment);
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
34annotation.ComputeEnvironment == appServiceEnvironment &&