Share via


ResourceBuilderExtensions.WithManifestPublishingCallback Method

Definition

Overloads

WithManifestPublishingCallback<T>(IResourceBuilder<T>, Action<ManifestPublishingContext>)

Registers a callback which is invoked when manifest is generated for the app model.

WithManifestPublishingCallback<T>(IResourceBuilder<T>, Func<ManifestPublishingContext,Task>)

Registers an async callback which is invoked when manifest is generated for the app model.

WithManifestPublishingCallback<T>(IResourceBuilder<T>, Action<ManifestPublishingContext>)

Source:
ResourceBuilderExtensions.cs
Source:
ResourceBuilderExtensions.cs

Registers a callback which is invoked when manifest is generated for the app model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithManifestPublishingCallback<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Action<Aspire.Hosting.Publishing.ManifestPublishingContext> callback) where T : Aspire.Hosting.ApplicationModel.IResource;
static member WithManifestPublishingCallback : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)> * Action<Aspire.Hosting.Publishing.ManifestPublishingContext> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)
<Extension()>
Public Function WithManifestPublishingCallback(Of T As IResource) (builder As IResourceBuilder(Of T), callback As Action(Of ManifestPublishingContext)) As IResourceBuilder(Of T)

Type Parameters

T

The resource type.

Parameters

builder
IResourceBuilder<T>

The resource builder.

callback
Action<ManifestPublishingContext>

Callback method which takes a ManifestPublishingContext which can be used to inject JSON into the manifest.

Returns

A reference to the IResourceBuilder<T>.

Applies to

WithManifestPublishingCallback<T>(IResourceBuilder<T>, Func<ManifestPublishingContext,Task>)

Source:
ResourceBuilderExtensions.cs
Source:
ResourceBuilderExtensions.cs

Registers an async callback which is invoked when manifest is generated for the app model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithManifestPublishingCallback<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Func<Aspire.Hosting.Publishing.ManifestPublishingContext,System.Threading.Tasks.Task> callback) where T : Aspire.Hosting.ApplicationModel.IResource;
static member WithManifestPublishingCallback : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)> * Func<Aspire.Hosting.Publishing.ManifestPublishingContext, System.Threading.Tasks.Task> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)
<Extension()>
Public Function WithManifestPublishingCallback(Of T As IResource) (builder As IResourceBuilder(Of T), callback As Func(Of ManifestPublishingContext, Task)) As IResourceBuilder(Of T)

Type Parameters

T

The resource type.

Parameters

builder
IResourceBuilder<T>

The resource builder.

callback
Func<ManifestPublishingContext,Task>

Callback method which takes a ManifestPublishingContext which can be used to inject JSON into the manifest.

Returns

A reference to the IResourceBuilder<T>.

Applies to