Compartilhar via


TaskOrchestrationContext.SendEvent(String, String, Object) Method

Definition

Raises an external event for the specified orchestration instance.

public abstract void SendEvent (string instanceId, string eventName, object payload);
abstract member SendEvent : string * string * obj -> unit
Public MustOverride Sub SendEvent (instanceId As String, eventName As String, payload As Object)

Parameters

instanceId
String

The ID of the orchestration instance to send the event to.

eventName
String

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

payload
Object

The serializable payload of the external event.

Remarks

The target orchestration can handle the sent event using the WaitForExternalEvent<T>(String, CancellationToken) method.

If the target orchestration doesn't exist, the event will be silently dropped.

Applies to