revoframework / Revo

Event Sourcing, CQRS and DDD framework for C#/.NET Core.
https://docs.revoframework.net/
MIT License
654 stars 70 forks source link

Cannot disable loading module SagasModule. #27

Closed RustamGulamov closed 3 years ago

RustamGulamov commented 3 years ago

SagasModule is always loaded, even if UseSagas = false;

.UseAllEFCoreInfrastructure(x => x.UseSagas = false)

It is bug ?

martinzima commented 3 years ago

Yes, I can see now that this is indeed a bug. The advancedAction configuration lambda for UseAllEFCoreInfrastructure is never run. I will fix this in the upcoming release. Is this causing any trouble for you now?

RustamGulamov commented 3 years ago

Why SagaEventListener was created on publish Event from aggregate ?

image

martinzima commented 3 years ago

Thanks for the report, I will look into the issue.

For now, if you don't need sagas support, you can completely disable them by using:

.ConfigureInfrastructure(config => config.EnableSagas = false)