2 instantiations of RegistryTargetAnnotation
Aspire.Hosting (1)
ContainerRegistryResourceBuilderExtensions.cs (1)
128
resource.Annotations.Add(new
RegistryTargetAnnotation
(registry));
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
89
resource.Annotations.Add(new
RegistryTargetAnnotation
(registry));
19 references to RegistryTargetAnnotation
Aspire.Hosting (3)
ApplicationModel\ResourceExtensions.cs (2)
1169
/// <item>The <see cref="
RegistryTargetAnnotation
"/> on the resource (automatically added when a registry is added to the app model).</item>
1189
var registryTargetAnnotations = resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToArray();
Pipelines\DistributedApplicationPipeline.cs (1)
215
var registryTargetAnnotations = resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToArray();
Aspire.Hosting.Foundry.Tests (2)
HostedAgentExtensionTests.cs (2)
143
var registryTargets = container.Resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToList();
144
var
registryTarget = Assert.Single(registryTargets);
Aspire.Hosting.Tests (14)
ContainerRegistryResourceTests.cs (14)
519
Assert.Empty(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
526
var
registryTargetAnnotation = Assert.Single(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
547
var registryTargetAnnotations = project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToList();
652
Assert.Single(project1.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
653
Assert.Single(project2.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
654
Assert.Single(container.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
676
var registryTargetAnnotations = project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToList();
699
Assert.Empty(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
706
var
registryTargetAnnotation = Assert.Single(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
727
Assert.Single(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
728
Assert.Single(container.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
789
var registryTargetAnnotations = project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToList();