7 instantiations of DeploymentTargetAnnotation
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
70
r.Annotations.Add(new
DeploymentTargetAnnotation
(containerApp)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceInfrastructure.cs (1)
48
resource.Annotations.Add(new
DeploymentTargetAnnotation
(website)
Aspire.Hosting.Docker (2)
DockerComposeInfrastructure.cs (2)
48
dashboard.Annotations.Add(new
DeploymentTargetAnnotation
(dashboardService)
77
r.Annotations.Add(new
DeploymentTargetAnnotation
(serviceResource)
Aspire.Hosting.Kubernetes (1)
KubernetesInfrastructure.cs (1)
60
r.Annotations.Add(new
DeploymentTargetAnnotation
(serviceResource)
Aspire.Hosting.Tests (2)
ResourceExtensionsTests.cs (2)
306
.WithAnnotation(new
DeploymentTargetAnnotation
(compute1.Resource) { ComputeEnvironment = compute1.Resource })
307
.WithAnnotation(new
DeploymentTargetAnnotation
(compute2.Resource) { ComputeEnvironment = compute2.Resource });
83 references to DeploymentTargetAnnotation
Aspire.Hosting (5)
ApplicationModel\ResourceExtensions.cs (2)
579
public static
DeploymentTargetAnnotation
? GetDeploymentTargetAnnotation(this IResource resource, IComputeEnvironmentResource? targetComputeEnvironment = null)
595
if (resource.TryGetAnnotationsOfType<
DeploymentTargetAnnotation
>(out var deploymentTargetAnnotations))
Publishing\ManifestPublishingContext.cs (3)
158
var
deploymentTarget = project.GetDeploymentTargetAnnotation();
182
private async Task WriteDeploymentTarget(
DeploymentTargetAnnotation
deploymentTarget)
254
var
deploymentTarget = container.GetDeploymentTargetAnnotation();
Aspire.Hosting.Azure.Tests (78)
AzureAppServiceTests.cs (11)
39
var
target = container.GetDeploymentTargetAnnotation();
95
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
130
project2.Resource.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
162
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
198
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
234
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
AzureContainerAppsTests.cs (53)
40
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
74
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
104
var
target = container.GetDeploymentTargetAnnotation();
146
var
target = container.GetDeploymentTargetAnnotation();
178
var
target = container.GetDeploymentTargetAnnotation();
221
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
251
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
325
proj.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
402
proj.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
439
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
471
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
532
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
568
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
606
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
646
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
678
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
711
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
793
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
836
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
867
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
899
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
930
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
969
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
1013
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
1054
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
1299
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
1350
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
1463
container.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
AzureUserAssignedIdentityTests.cs (10)
125
var
deploymentTarget = Assert.Single(computeResource.Annotations.OfType<
DeploymentTargetAnnotation
>());
177
var
deploymentTarget = Assert.Single(computeResource.Annotations.OfType<
DeploymentTargetAnnotation
>());
232
var
deploymentTarget = Assert.Single(computeResource.Annotations.OfType<
DeploymentTargetAnnotation
>());
317
var
deploymentTarget = Assert.Single(computeResource.Annotations.OfType<
DeploymentTargetAnnotation
>());
318
var
deploymentTarget2 = Assert.Single(computeResource2.Annotations.OfType<
DeploymentTargetAnnotation
>());
ContainerRegistryTests.cs (4)
62
project.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
target);
158
if (resource.TryGetLastAnnotation<
DeploymentTargetAnnotation
>(out
var
annotation) &&