Пример #1
0
 public void RegisterHandlers(IHandlerRegistry handlerRegistry)
 {
     foreach (var hi in handlers.Value)
     {
         handlerRegistry.Register(hi.MessageType, new HandlerInfo(hi.HandlerType,
                                                                  hi.MessageType, hi.ProcessCode, hi.MethodInfo));
     }
 }
Пример #2
0
 public void Register(IHandlerRegistry <TAgg, TId, TState> registry)
 {
     registry.Register(this);
 }
Пример #3
0
 private static void RegisterCommandHandlers(IUnityContainer container, IHandlerRegistry registry)
 {
     registry.Register(container.Resolve <InventoryCommandHandler>());
     registry.Register(container.Resolve <MessageLogHandler>());
 }
Пример #4
0
 private static void RegisterEventHandlers(IUnityContainer container, IHandlerRegistry registry)
 {
     registry.Register(container.Resolve <InventoryListViewCreator>());
     registry.Register(container.Resolve <InvenotryItemDetailViewCreator>());
     registry.Register(container.Resolve <MessageLogHandler>());
 }
Пример #5
0
 private static void RegisterEventHandlers(IUnityContainer container, IHandlerRegistry registry)
 {
     registry.Register(container.Resolve <CustomerViewGenerator>());
     registry.Register(container.Resolve <MessageLogHandler>());
 }