Compartilhar via


GrpcDurableTaskClient.RaiseEventAsync Method

Definition

Sends an event notification message to a waiting orchestration instance.

public override System.Threading.Tasks.Task RaiseEventAsync (string instanceId, string eventName, object? eventPayload = default, System.Threading.CancellationToken cancellation = default);
override this.RaiseEventAsync : string * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function RaiseEventAsync (instanceId As String, eventName As String, Optional eventPayload As Object = Nothing, Optional cancellation As CancellationToken = Nothing) As Task

Parameters

instanceId
String

The ID of the orchestration instance that will handle the event.

eventName
String

The name of the event. Event names are case-insensitive.

eventPayload
Object

The serializable data payload to include with the event.

cancellation
CancellationToken

The cancellation token. This only cancels enqueueing the event to the backend. Does not abort sending the event once enqueued.

Returns

A task that completes when the event notification message has been enqueued.

Applies to