2017-01-31 11:01:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
2017-02-05 22:22:34 +00:00
|
|
|
|
using Tapeti.Flow.Default;
|
2017-01-31 11:01:08 +00:00
|
|
|
|
|
2018-12-19 19:50:56 +00:00
|
|
|
|
// ReSharper disable UnusedMember.Global
|
|
|
|
|
|
2017-01-31 11:01:08 +00:00
|
|
|
|
namespace Tapeti.Flow
|
|
|
|
|
{
|
|
|
|
|
public interface IFlowStore
|
|
|
|
|
{
|
|
|
|
|
Task Load();
|
2017-02-05 22:22:34 +00:00
|
|
|
|
Task<Guid?> FindFlowID(Guid continuationID);
|
|
|
|
|
Task<IFlowStateLock> LockFlowState(Guid flowID);
|
2017-01-31 11:01:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IFlowStateLock : IDisposable
|
|
|
|
|
{
|
2017-02-05 22:22:34 +00:00
|
|
|
|
Guid FlowID { get; }
|
|
|
|
|
|
2017-01-31 11:01:08 +00:00
|
|
|
|
Task<FlowState> GetFlowState();
|
|
|
|
|
Task StoreFlowState(FlowState flowState);
|
|
|
|
|
Task DeleteFlowState();
|
|
|
|
|
}
|
|
|
|
|
}
|