2017-01-31 11:01:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Flow.Default
|
|
|
|
|
{
|
2017-07-27 13:55:37 +00:00
|
|
|
|
public class NonPersistentFlowRepository<T> : IFlowRepository<T>
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
2017-07-27 13:55:37 +00:00
|
|
|
|
Task<List<KeyValuePair<Guid, T>>> IFlowRepository<T>.GetStates()
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
2017-07-27 13:55:37 +00:00
|
|
|
|
return Task.FromResult(new List<KeyValuePair<Guid, T>>());
|
2017-01-31 11:01:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-07-27 13:55:37 +00:00
|
|
|
|
public Task CreateState(Guid flowID, T state, DateTime timestamp)
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-27 13:55:37 +00:00
|
|
|
|
public Task UpdateState(Guid flowID, T state)
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task DeleteState(Guid flowID)
|
|
|
|
|
{
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|