2018-10-14 10:24:36 +00:00
|
|
|
|
using System.Threading;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Flowsharp.Activities;
|
|
|
|
|
|
|
2018-10-14 18:06:54 +00:00
|
|
|
|
namespace Flowsharp.Serialization
|
2018-10-14 10:24:36 +00:00
|
|
|
|
{
|
|
|
|
|
|
public interface IWorkflowSerializer
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<string> SerializeAsync(Workflow workflow, CancellationToken cancellationToken);
|
2018-10-14 18:06:54 +00:00
|
|
|
|
Task<Workflow> DeserializeAsync(string json, CancellationToken cancellationToken);
|
2018-10-14 10:24:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|