سؤال

Why is SagaBase generic in Jonathan Oliver's CommonDomain library?

هل كانت مفيدة؟

المحلول

That has more to do with a poor design decision related to an assumed dependency on NServiceBus. CommonDomain was actually a bunch of spike code that worked so well, that I started using it in production. I was using NServiceBus which requires that all messages implement IMessage. As a result, SagaBase requires some kind of type, e.g. IMessage. In the coming weeks, I will be overhauling CommonDomain and perhaps inlining critical parts of it into the EventStore. For now, you can just use AggregateBase if you'd like.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top