Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PublishResourceUpdate

Method
📦 Aspire.Hosting v17.0.0
func (ResourceNotificationService) PublishResourceUpdate(
resource Resource,
options ...*PublishResourceUpdateOptions,
) error

Signature

methodPublishResourceUpdate
Publishes an update for a resource's state.
PublishResourceUpdate(
resource Resource,
options ...*PublishResourceUpdateOptions,
) error
resourceResource
options...*PublishResourceUpdateOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*PublishResourceUpdateOptions argument.

State*string
StateStyle*string
error

Returns error.

Applies to

This method applies to the following types: