using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Tapeti.Flow.Default
{
///
///
/// Default implementation for IFlowRepository. Does not persist any state, relying on the FlowStore's cache instead.
///
public class NonPersistentFlowRepository : IFlowRepository
{
Task>> IFlowRepository.GetStates()
{
return Task.FromResult(Enumerable.Empty>());
}
///
public Task CreateState(Guid flowID, T state, DateTime timestamp)
{
return Task.CompletedTask;
}
///
public Task UpdateState(Guid flowID, T state)
{
return Task.CompletedTask;
}
///
public Task DeleteState(Guid flowID)
{
return Task.CompletedTask;
}
}
}