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

20 lines
753 B
C#
Raw Normal View History

using Elsa.Workflows.Core.Models;
using Elsa.Workflows.Core.State;
using Elsa.Workflows.Runtime.Results;
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<IEnumerable<WorkflowState>> ProcessBookmarks(
2023-01-24 20:03:50 +00:00
IEnumerable<WorkflowExecutionResult> executionResults,
string? correlationId = default,
IDictionary<string, object>? input = default,
CancellationTokens cancellationToken = default);
2023-01-24 20:03:50 +00:00
}