-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Hi,
first of all THANKS for the invaluable work you shared with us.
I'm studying your code but I cannot get around an apparently simple thing...
Talking about User Registration process.
- The
New User Registered Integration Eventis sent to the bus, then Meeting, Administration and Payment modules are subscribed to this event. Let's ignore the Payment module for now on. - The Integration event is handled with the
NewUserRegisteredIntegrationEventHandlerfor each module. The handler function simply enqueues aCreateMemberCommandthat is an internal command using the command scheduler. - The command handler is somewhat called and both modules perform the adding action to the database.
Now the question is: what are supposed to do line 71 and 73 in the AdministraionStartup.cs ?
71: internalCommandsMap.Add("CreateMember", typeof(CreateMemberCommand));
73: containerBuilder.RegisterModule(new InternalCommandsModule(internalCommandsMap));
I really cannot understand the purpose of the InternalCommandsModule (used only in the Administration module).
What I am missing here?
Metadata
Metadata
Assignees
Labels
No labels