2018-10-12 18:53:06 +00:00
|
|
|
|
using System.Threading;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Flowsharp.Models;
|
|
|
|
|
|
|
2018-10-16 10:26:28 +00:00
|
|
|
|
namespace Flowsharp
|
2018-10-12 18:53:06 +00:00
|
|
|
|
{
|
|
|
|
|
|
public interface IWorkflowInvoker
|
|
|
|
|
|
{
|
2018-10-16 10:41:12 +00:00
|
|
|
|
Task<WorkflowExecutionContext> InvokeAsync(Workflow workflow, IActivity startActivity = default, Variables arguments = default, CancellationToken cancellationToken = default);
|
|
|
|
|
|
Task<WorkflowExecutionContext> ResumeAsync(Workflow workflow, IActivity startActivity = default, Variables arguments = default, CancellationToken cancellationToken = default);
|
2018-10-12 18:53:06 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|