2018-10-12 18:53:06 +00:00
|
|
|
|
using System.Threading;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2018-10-14 10:24:36 +00:00
|
|
|
|
using Flowsharp.Activities;
|
2018-10-12 18:53:06 +00:00
|
|
|
|
using Flowsharp.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Flowsharp.Services
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IWorkflowInvoker
|
|
|
|
|
|
{
|
2018-10-15 12:15:36 +00:00
|
|
|
|
IActivityInvoker ActivityInvoker { get; }
|
2018-10-14 10:24:36 +00:00
|
|
|
|
Task<WorkflowExecutionContext> InvokeAsync(Workflow workflow, IActivity startActivity = default, CancellationToken cancellationToken = default);
|
2018-10-16 09:52:55 +00:00
|
|
|
|
Task<WorkflowExecutionContext> ResumeAsync(Workflow workflow, IActivity startActivity = default, CancellationToken cancellationToken = default);
|
2018-10-12 18:53:06 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|