Mark van Renswoude
74985e45de
Some are silly, like the "member not used" for public interfaces. The comments everywhere are ugly, sorry, but it keeps the possibly important issues visible without a dependency on some ReSharper annotations package.
25 lines
533 B
C#
25 lines
533 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Tapeti.Flow.Default;
|
|
|
|
// ReSharper disable UnusedMember.Global
|
|
|
|
namespace Tapeti.Flow
|
|
{
|
|
public interface IFlowStore
|
|
{
|
|
Task Load();
|
|
Task<Guid?> FindFlowID(Guid continuationID);
|
|
Task<IFlowStateLock> LockFlowState(Guid flowID);
|
|
}
|
|
|
|
public interface IFlowStateLock : IDisposable
|
|
{
|
|
Guid FlowID { get; }
|
|
|
|
Task<FlowState> GetFlowState();
|
|
Task StoreFlowState(FlowState flowState);
|
|
Task DeleteFlowState();
|
|
}
|
|
}
|