ResourceExtensions.WithDeploymentImageTag Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| WithDeploymentImageTag<T>(IResourceBuilder<T>, Func<DeploymentImageTagCallbackAnnotationContext,String>) |
Adds a deployment-specific image tag callback to a resource. |
| WithDeploymentImageTag<T>(IResourceBuilder<T>, Func<DeploymentImageTagCallbackAnnotationContext,Task<String>>) |
Adds a deployment-specific image tag callback to a resource. |
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.
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.
The asynchronous callback that returns the deployment tag name.
Returns
The resource builder.