Share via


ResourceExtensions.WithDeploymentImageTag Method

Definition

Overloads

WithDeploymentImageTag<T>(IResourceBuilder<T>, Func<DeploymentImageTagCallbackAnnotationContext,String>)

Source:
ResourceExtensions.cs

Adds a deployment-specific image tag callback to a resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithDeploymentImageTag<T>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Func<Aspire.Hosting.ApplicationModel.DeploymentImageTagCallbackAnnotationContext,string> callback) where T : class, Aspire.Hosting.ApplicationModel.IResource;
static member WithDeploymentImageTag : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T : null and 'T :> Aspire.Hosting.ApplicationModel.IResource)> * Func<Aspire.Hosting.ApplicationModel.DeploymentImageTagCallbackAnnotationContext, string> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T : null and 'T :> Aspire.Hosting.ApplicationModel.IResource)> (requires 'T : null and 'T :> Aspire.Hosting.ApplicationModel.IResource)
<Extension()>
Public Function WithDeploymentImageTag(Of T As {Class, IResource}) (builder As IResourceBuilder(Of T), callback As Func(Of DeploymentImageTagCallbackAnnotationContext, String)) As IResourceBuilder(Of T)

Type Parameters

T

The resource type.

Parameters

builder
IResourceBuilder<T>

The resource builder.

callback
Func<DeploymentImageTagCallbackAnnotationContext,String>

The synchronous callback that returns the deployment tag name.

Returns

The resource builder.

Applies to

WithDeploymentImageTag<T>(IResourceBuilder<T>, Func<DeploymentImageTagCallbackAnnotationContext,Task<String>>)

Source:
ResourceExtensions.cs

Adds a deployment-specific image tag callback to a resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithDeploymentImageTag<T>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Func<Aspire.Hosting.ApplicationModel.DeploymentImageTagCallbackAnnotationContext,System.Threading.Tasks.Task<string>> callback) where T : class, Aspire.Hosting.ApplicationModel.IResource;
static member WithDeploymentImageTag : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T : null and 'T :> Aspire.Hosting.ApplicationModel.IResource)> * Func<Aspire.Hosting.ApplicationModel.DeploymentImageTagCallbackAnnotationContext, System.Threading.Tasks.Task<string>> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T : null and 'T :> Aspire.Hosting.ApplicationModel.IResource)> (requires 'T : null and 'T :> Aspire.Hosting.ApplicationModel.IResource)
<Extension()>
Public Function WithDeploymentImageTag(Of T As {Class, IResource}) (builder As IResourceBuilder(Of T), callback As Func(Of DeploymentImageTagCallbackAnnotationContext, Task(Of String))) As IResourceBuilder(Of T)

Type Parameters

T

The resource type.

Parameters

builder
IResourceBuilder<T>

The resource builder.

callback
Func<DeploymentImageTagCallbackAnnotationContext,Task<String>>

The asynchronous callback that returns the deployment tag name.

Returns

The resource builder.

Applies to