9 references to GetDeploymentTargetAnnotation
Aspire.Hosting.Azure (1)
AzurePublishingContext.cs (1)
230
if (resource.
GetDeploymentTargetAnnotation
() is { } annotation && annotation.DeploymentTarget is AzureBicepResource br)
Aspire.Hosting.Azure.Tests (3)
AzureContainerAppsTests.cs (3)
222
var target = container.
GetDeploymentTargetAnnotation
();
361
var target = container.
GetDeploymentTargetAnnotation
();
469
var target = container.
GetDeploymentTargetAnnotation
();
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
85
if (resource.
GetDeploymentTargetAnnotation
()?.DeploymentTarget is DockerComposeServiceResource serviceResource)
Aspire.Hosting.Docker.Tests (1)
DockerComposeTests.cs (1)
29
Assert.Same(composeEnv.Resource, container.Resource.
GetDeploymentTargetAnnotation
()?.ComputeEnvironment);
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
85
if (resource.
GetDeploymentTargetAnnotation
()?.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);