Saga base implementation for Muflone
$ dotnet add package Muflone.SagaBasic implementation of a saga (not event sourced at the moment)
Install-Package Muflone.Saga
Inside the Saga implementation we integrated IStartedBy to avoid error by forgotting to implement it
So, for example, the code changes from
public class MySaga : Saga<MySaga.MyData>, IStartedBy<FakeStartingCommand>, ISagaEventHandlerAsync<FakeResponse>, ISagaEventHandlerAsync<FakeResponseError>`
to
public class MySaga : Saga<FakeStartingCommand, MySaga.MyData>, ISagaEventHandlerAsync<FakeResponse>, ISagaEventHandlerAsync<FakeResponseError>
and the implementation of the interface changes feom
public async Task StartedByAsync(FakeStartingCommand command)
{
}
to
public override async Task StartedByAsync(FakeStartingCommand command)
{
}