Share via


ContainerImageReference Constructors

Definition

Overloads

ContainerImageReference(IResource)
Obsolete.

Initializes a new instance of the ContainerImageReference class.

ContainerImageReference(IResource, IServiceProvider)

Initializes a new instance of the ContainerImageReference class with service provider access.

ContainerImageReference(IResource)

Source:
ContainerImageReference.cs
Source:
ContainerImageReference.cs
Source:
ContainerImageReference.cs

Caution

Use the constructor that accepts IServiceProvider to support async deployment image tag callbacks.

Initializes a new instance of the ContainerImageReference class.

[System.Obsolete("Use the constructor that accepts IServiceProvider to support async deployment image tag callbacks.")]
public ContainerImageReference(Aspire.Hosting.ApplicationModel.IResource resource);
[<System.Obsolete("Use the constructor that accepts IServiceProvider to support async deployment image tag callbacks.")>]
new Aspire.Hosting.ApplicationModel.ContainerImageReference : Aspire.Hosting.ApplicationModel.IResource -> Aspire.Hosting.ApplicationModel.ContainerImageReference
Public Sub New (resource As IResource)

Parameters

resource
IResource

The resource that this container image is associated with.

Attributes

Applies to

ContainerImageReference(IResource, IServiceProvider)

Source:
ContainerImageReference.cs

Initializes a new instance of the ContainerImageReference class with service provider access.

public ContainerImageReference(Aspire.Hosting.ApplicationModel.IResource resource, IServiceProvider? serviceProvider);
new Aspire.Hosting.ApplicationModel.ContainerImageReference : Aspire.Hosting.ApplicationModel.IResource * IServiceProvider -> Aspire.Hosting.ApplicationModel.ContainerImageReference
Public Sub New (resource As IResource, serviceProvider As IServiceProvider)

Parameters

resource
IResource

The resource that this container image is associated with.

serviceProvider
IServiceProvider

The service provider for accessing services during callback execution.

Applies to