2 instantiations of RegistryTargetAnnotation
Aspire.Hosting (1)
ContainerRegistryResourceBuilderExtensions.cs (1)
126
resource.Annotations.Add(new
RegistryTargetAnnotation
(registry));
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
84
resource.Annotations.Add(new
RegistryTargetAnnotation
(registry));
17 references to RegistryTargetAnnotation
Aspire.Hosting (3)
ApplicationModel\ResourceExtensions.cs (2)
1140
/// <item>The <see cref="
RegistryTargetAnnotation
"/> on the resource (automatically added when a registry is added to the app model).</item>
1160
var registryTargetAnnotations = resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToArray();
Pipelines\DistributedApplicationPipeline.cs (1)
195
var registryTargetAnnotations = resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToArray();
Aspire.Hosting.Tests (14)
ContainerRegistryResourceTests.cs (14)
518
Assert.Empty(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
525
var
registryTargetAnnotation = Assert.Single(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
546
var registryTargetAnnotations = project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToList();
651
Assert.Single(project1.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
652
Assert.Single(project2.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
653
Assert.Single(container.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
675
var registryTargetAnnotations = project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToList();
698
Assert.Empty(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
705
var
registryTargetAnnotation = Assert.Single(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
726
Assert.Single(project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
727
Assert.Single(container.Resource.Annotations.OfType<
RegistryTargetAnnotation
>());
788
var registryTargetAnnotations = project.Resource.Annotations.OfType<
RegistryTargetAnnotation
>().ToList();