using Elsa.Workflows.Runtime.Activities; namespace Elsa.Workflows.Runtime; /// /// Publishes events using the workflow runtime, effectively triggering all activities. /// public interface IEventPublisher { /// /// Publishes the specified event. /// Task PublishAsync(string eventName, string? correlationId = null, string? workflowInstanceId = null, string? activityInstanceId = null, object? payload = null, bool asynchronous = false, CancellationToken cancellationToken = default); }