snatch-dev / Chronicle

Implementation of saga pattern for .NET Core
MIT License
397 stars 70 forks source link

Get all the pending saga of a given type #29

Open paolofulgoni opened 5 years ago

paolofulgoni commented 5 years ago

What about adding a method to get all the pending saga of a given type?

Something like this:

    public interface ISagaStateRepository
    {
        // ...

        Task<IEnumerable<ISagaState>> ReadPendingAsync(Type type);
        // or...
        Task<IEnumerable<ISagaState>> ReadAsync(Type type, SagaStates state);
    }