elsa-core/src/core/Flowsharp.Abstractions/IWorkflowInvoker.cs
Sipke Schoorstra 7fbe3c7186 WIP
2018-11-18 22:43:11 +01:00

13 lines
524 B
C#

using System.Threading;
using System.Threading.Tasks;
using Flowsharp.Models;
namespace Flowsharp
{
public interface IWorkflowInvoker
{
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);
}
}