TaskOrchestrationContext.SendEvent(String, String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.