Skip to content
Docs Try Aspire

RegistryTargetAnnotation Constructors

Class Constructors 1 member
Annotation that indicates a resource should use a specific container registry as its default target.
Constructor(IContainerRegistry) Section titled Constructor(IContainerRegistry)
Annotation that indicates a resource should use a specific container registry as its default target.
public sealed class RegistryTargetAnnotation
{
public RegistryTargetAnnotation(
IContainerRegistry registry)
{
// ...
}
}
registry IContainerRegistry The container registry resource.
This annotation is automatically added to resources when a container registry is added to the application model. It provides a default registry for resources that don't have an explicit ContainerRegistryReferenceAnnotation.