2017-01-31 11:01:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Flow
|
|
|
|
|
{
|
2017-08-14 11:58:01 +00:00
|
|
|
|
public interface IFlowRepository
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
2017-08-14 11:58:01 +00:00
|
|
|
|
Task<List<KeyValuePair<Guid, T>>> GetStates<T>();
|
|
|
|
|
Task CreateState<T>(Guid flowID, T state, DateTime timestamp);
|
|
|
|
|
Task UpdateState<T>(Guid flowID, T state);
|
2017-01-31 11:01:08 +00:00
|
|
|
|
Task DeleteState(Guid flowID);
|
|
|
|
|
}
|
|
|
|
|
}
|