Replies: 1 comment
-
|
nevermind, it was just me :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It might just be me, but when I load the assembly that contains the commands, aggregates, and sagas, they don’t seem to get added to the service collection. This might have something to do with the way
EventFlowOptionsis constructed.Currently,
RegisterDefaultsis called inside the constructor, like this:The problem is that
AddDefaultscan only be called on an instance ofIEventFlowOptions, which means that any types retrieved from the assembly passed toAddDefaultswill never actually get registered, sinceRegisterDefaultshas already been called during construction.I would like to suggest
Adding a method to
IEventFlowOptions, something likeApplyRegistrations(), which would handle the actual registration at the right time:This way, registration happens after all types have been added by
AddDefaults.Or… maybe I missed something! 🙂
Would love to hear your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions