Partager via


ContainerResourceBuilderExtensions.WithImageRegistry<T> Method

Definition

Allows overriding the image registry on a container.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithImageRegistry<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string registry) where T : Aspire.Hosting.ApplicationModel.ContainerResource;
static member WithImageRegistry : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)
<Extension()>
Public Function WithImageRegistry(Of T As ContainerResource) (builder As IResourceBuilder(Of T), registry As String) As IResourceBuilder(Of T)

Type Parameters

T

Type of container resource.

Parameters

builder
IResourceBuilder<T>

Builder for the container resource.

registry
String

Registry value.

Returns

Applies to