10 references to 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)
40
var target = container.
GetDeploymentTargetAnnotation
();
AzureContainerAppsTests.cs (3)
109
var target = container.
GetDeploymentTargetAnnotation
();
152
var target = container.
GetDeploymentTargetAnnotation
();
185
var target = container.
GetDeploymentTargetAnnotation
();
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
70
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);