Share via


ContainerResourceBuilderExtensions.WithImageSHA256<T> Method

Definition

Allows setting the image to a specific sha256 on a container.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithImageSHA256<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string sha256) where T : Aspire.Hosting.ApplicationModel.ContainerResource;
static member WithImageSHA256 : 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 WithImageSHA256(Of T As ContainerResource) (builder As IResourceBuilder(Of T), sha256 As String) As IResourceBuilder(Of T)

Type Parameters

T

Type of container resource.

Parameters

builder
IResourceBuilder<T>

Builder for the container resource.

sha256
String

Registry value.

Returns

Applies to