Share via


ResourceNotificationService.PublishUpdateAsync Method

Definition

Overloads

PublishUpdateAsync(IResource, Func<CustomResourceSnapshot,CustomResourceSnapshot>)

Updates the snapshot of the CustomResourceSnapshot for a resource.

PublishUpdateAsync(IResource, String, Func<CustomResourceSnapshot,CustomResourceSnapshot>)

Updates the snapshot of the CustomResourceSnapshot for a resource.

PublishUpdateAsync(IResource, Func<CustomResourceSnapshot,CustomResourceSnapshot>)

Source:
ResourceNotificationService.cs
Source:
ResourceNotificationService.cs

Updates the snapshot of the CustomResourceSnapshot for a resource.

public System.Threading.Tasks.Task PublishUpdateAsync (Aspire.Hosting.ApplicationModel.IResource resource, Func<Aspire.Hosting.ApplicationModel.CustomResourceSnapshot,Aspire.Hosting.ApplicationModel.CustomResourceSnapshot> stateFactory);
member this.PublishUpdateAsync : Aspire.Hosting.ApplicationModel.IResource * Func<Aspire.Hosting.ApplicationModel.CustomResourceSnapshot, Aspire.Hosting.ApplicationModel.CustomResourceSnapshot> -> System.Threading.Tasks.Task
Public Function PublishUpdateAsync (resource As IResource, stateFactory As Func(Of CustomResourceSnapshot, CustomResourceSnapshot)) As Task

Parameters

resource
IResource

The resource to update

stateFactory
Func<CustomResourceSnapshot,CustomResourceSnapshot>

A factory that creates the new state based on the previous state.

Returns

Applies to

PublishUpdateAsync(IResource, String, Func<CustomResourceSnapshot,CustomResourceSnapshot>)

Source:
ResourceNotificationService.cs
Source:
ResourceNotificationService.cs

Updates the snapshot of the CustomResourceSnapshot for a resource.

public System.Threading.Tasks.Task PublishUpdateAsync (Aspire.Hosting.ApplicationModel.IResource resource, string resourceId, Func<Aspire.Hosting.ApplicationModel.CustomResourceSnapshot,Aspire.Hosting.ApplicationModel.CustomResourceSnapshot> stateFactory);
member this.PublishUpdateAsync : Aspire.Hosting.ApplicationModel.IResource * string * Func<Aspire.Hosting.ApplicationModel.CustomResourceSnapshot, Aspire.Hosting.ApplicationModel.CustomResourceSnapshot> -> System.Threading.Tasks.Task
Public Function PublishUpdateAsync (resource As IResource, resourceId As String, stateFactory As Func(Of CustomResourceSnapshot, CustomResourceSnapshot)) As Task

Parameters

resource
IResource

The resource to update

resourceId
String

The id of the resource.

stateFactory
Func<CustomResourceSnapshot,CustomResourceSnapshot>

A factory that creates the new state based on the previous state.

Returns

Applies to