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 Event is 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
NewUserRegisteredIntegrationEventHandler for each module. The handler function simply enqueues a CreateMemberCommand that 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?
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.
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.NewUserRegisteredIntegrationEventHandlerfor each module. The handler function simply enqueues aCreateMemberCommandthat is an internal command using the command scheduler.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?