12 references to GetDeploymentTargetAnnotation
Aspire.Hosting (2)
Publishing\ManifestPublishingContext.cs (2)
158
var deploymentTarget = project.
GetDeploymentTargetAnnotation
();
254
var deploymentTarget = container.
GetDeploymentTargetAnnotation
();
Aspire.Hosting.Azure (1)
AzurePublishingContext.cs (1)
233
if (resource.
GetDeploymentTargetAnnotation
() is { } annotation && annotation.DeploymentTarget is AzureBicepResource br)
Aspire.Hosting.Azure.Tests (4)
AzureAppServiceTests.cs (1)
39
var target = container.
GetDeploymentTargetAnnotation
();
AzureContainerAppsTests.cs (3)
104
var target = container.
GetDeploymentTargetAnnotation
();
146
var target = container.
GetDeploymentTargetAnnotation
();
178
var target = container.
GetDeploymentTargetAnnotation
();
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
76
if (resource.
GetDeploymentTargetAnnotation
(environment)?.DeploymentTarget is DockerComposeServiceResource serviceResource)
Aspire.Hosting.Docker.Tests (1)
DockerComposeTests.cs (1)
28
Assert.Same(composeEnv.Resource, container.Resource.
GetDeploymentTargetAnnotation
()?.ComputeEnvironment);
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
72
if (resource.
GetDeploymentTargetAnnotation
(environment)?.DeploymentTarget is KubernetesResource serviceResource)
Aspire.Hosting.Tests (2)
ResourceExtensionsTests.cs (2)
309
var ex = Assert.Throws<InvalidOperationException>(() => resourceBuilder.Resource.
GetDeploymentTargetAnnotation
());
314
Assert.Equal(compute2.Resource, resourceBuilder.Resource.
GetDeploymentTargetAnnotation
()!.ComputeEnvironment);