2023-03-03 21:47:23 +00:00
|
|
|
using Elsa.Workflows.Runtime.Contracts;
|
2023-01-24 20:03:50 +00:00
|
|
|
|
2023-03-03 21:47:23 +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);
|
|
|
|
|
}
|