13 lines
524 B
C#
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);
|
|
}
|
|
}
|