Interface IWorkflowDispatcher
- Namespace
- JD.AI.Workflows.Distributed
- Assembly
- JD.AI.Workflows.Distributed.dll
Enqueues WorkflowWorkItem instances for distributed execution. Implementations back this with Redis Streams, Azure Service Bus, or an in-process channel.
public interface IWorkflowDispatcher
Methods
DispatchAsync(WorkflowWorkItem, CancellationToken)
Dispatches a workflow work item for execution.
Task DispatchAsync(WorkflowWorkItem item, CancellationToken ct = default)
Parameters
itemWorkflowWorkItemThe work item to dispatch.
ctCancellationTokenCancellation token.