18 lines
637 B
C#
18 lines
637 B
C#
|
|
using Elsa.Workflows.Runtime.Services;
|
||
|
|
|
||
|
|
namespace Elsa.Http.Services;
|
||
|
|
|
||
|
|
/// <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);
|
||
|
|
}
|