elsa-core/src/core/Flowsharp.Abstractions/IWorkflowInvoker.cs

13 lines
524 B
C#
Raw Normal View History

2018-10-12 18:53:06 +00:00
using System.Threading;
using System.Threading.Tasks;
using Flowsharp.Models;
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
}
}