2016-12-07 09:19:16 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Saga
|
|
|
|
|
{
|
|
|
|
|
public interface ISagaProvider
|
|
|
|
|
{
|
2016-12-13 21:01:43 +00:00
|
|
|
|
Task<ISaga<T>> Begin<T>(T initialState) where T : class;
|
2016-12-07 09:19:16 +00:00
|
|
|
|
Task<ISaga<T>> Continue<T>(string sagaId) where T : class;
|
2016-12-13 21:01:43 +00:00
|
|
|
|
Task<object> Continue(string sagaId);
|
2016-12-07 09:19:16 +00:00
|
|
|
|
}
|
|
|
|
|
}
|