elsa-core/src/modules/Elsa.Http/Contracts/IHttpBookmarkProcessor.cs

18 lines
639 B
C#
Raw Normal View History

using Elsa.Workflows.Runtime.Contracts;
2023-01-24 20:03:50 +00:00
namespace Elsa.Http.Contracts;
2023-01-24 20:03:50 +00:00
/// <summary>
/// A helper service that can process <see cref="TriggerWorkflowsResult"/>s within the current HTTP context.
/// </summary>
public interface IHttpBookmarkProcessor
{
/// <summary>
/// Processes the specified <see cref="executionResults"/> by resuming each HTTP bookmark while we are in an HTTP context.
/// </summary>
Task ProcessBookmarks(
IEnumerable<WorkflowExecutionResult> executionResults,
string? correlationId,
IDictionary<string, object>? input,
CancellationToken cancellationToken = default);
}