Method DeliverEvent
DeliverEvent(AgentRunState, string, string, string)
Delivers an event to a run that waits for it: when the run is in AwaitingEvent for this event and correlation key, the payload is kept for the waiting step and the run becomes resumable (Suspended); resume it to go on. False, and nothing changed, when the run waits for anything else.
public static bool DeliverEvent(AgentRunState state, string eventName, string correlation, string payload)
Parameters
stateAgentRunStateThe waiting run, changed in place.
eventNamestringThe event's name.
correlationstringThe event's correlation key.
payloadstringThe event's payload, the waiting step's output.
Returns
- bool
Whether the run took the event.