using Elsa.Workflows.Runtime.Notifications;
namespace Elsa.Workflows.Runtime;
///
/// Dispatches a request for running a task.
///
public interface ITaskDispatcher
{
///
/// Asynchronously publishes the specified event using the workflow dispatcher.
///
Task DispatchAsync(RunTaskRequest request, CancellationToken cancellationToken = default);
}