Skip to content
Docs Try Aspire

ContainerRegistryResource Constructors

Class Constructors 1 member
Represents a general-purpose container registry resource that can be used to reference external container registries (e.g., Docker Hub, GitHub Container Registry, or private registries) in the application model.
Constructor(string, ReferenceExpression, ReferenceExpression?) Section titled Constructor(string, ReferenceExpression, ReferenceExpression?)
Initializes a new instance of the ContainerRegistryResource class.
public class ContainerRegistryResource
{
public ContainerRegistryResource(
string name,
ReferenceExpression endpoint,
ReferenceExpression? repository = null)
{
// ...
}
}
name string The name of the resource.
endpoint ReferenceExpression The endpoint URL or hostname of the container registry.
repository ReferenceExpression? optional The optional repository path within the container registry.
ArgumentNullException Thrown when endpoint is null.