CommandOptions.UpdateState Property

Definition

A callback that is used to update the command state. The callback is executed when the command's resource snapshot is updated.

If a callback isn't specified, the command is always enabled.

public Func<Aspire.Hosting.ApplicationModel.UpdateCommandStateContext,Aspire.Hosting.ApplicationModel.ResourceCommandState>? UpdateState { get; set; }
member this.UpdateState : Func<Aspire.Hosting.ApplicationModel.UpdateCommandStateContext, Aspire.Hosting.ApplicationModel.ResourceCommandState> with get, set
Public Property UpdateState As Func(Of UpdateCommandStateContext, ResourceCommandState)

Property Value

Applies to