15 lines
549 B
C#
15 lines
549 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Flowsharp.Activities;
|
|
using Flowsharp.Models;
|
|
|
|
namespace Flowsharp.Services
|
|
{
|
|
public interface IWorkflowInvoker
|
|
{
|
|
IActivityInvoker ActivityInvoker { get; }
|
|
Task<WorkflowExecutionContext> InvokeAsync(Workflow workflow, IActivity startActivity = default, CancellationToken cancellationToken = default);
|
|
Task<WorkflowExecutionContext> ResumeAsync(Workflow workflow, IActivity startActivity = default, CancellationToken cancellationToken = default);
|
|
}
|
|
}
|