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
|
|
|
|
|
{
|
|
|
|
|
public class NonPersistentFlowRepository : IFlowRepository
|
|
|
|
|
{
|
2017-02-05 22:22:34 +00:00
|
|
|
|
public Task<IQueryable<FlowStateRecord>> GetStates()
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
|
|
|
|
return Task.FromResult(new List<FlowStateRecord>().AsQueryable());
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-05 22:22:34 +00:00
|
|
|
|
public Task CreateState(FlowStateRecord stateRecord, DateTime timestamp)
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-05 22:22:34 +00:00
|
|
|
|
public Task UpdateState(FlowStateRecord stateRecord)
|
2017-01-31 11:01:08 +00:00
|
|
|
|
{
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Task DeleteState(Guid flowID)
|
|
|
|
|
{
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|