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)); } }
public void Register(IHandlerRegistry <TAgg, TId, TState> registry) { registry.Register(this); }
private static void RegisterCommandHandlers(IUnityContainer container, IHandlerRegistry registry) { registry.Register(container.Resolve <InventoryCommandHandler>()); registry.Register(container.Resolve <MessageLogHandler>()); }
private static void RegisterEventHandlers(IUnityContainer container, IHandlerRegistry registry) { registry.Register(container.Resolve <InventoryListViewCreator>()); registry.Register(container.Resolve <InvenotryItemDetailViewCreator>()); registry.Register(container.Resolve <MessageLogHandler>()); }
private static void RegisterEventHandlers(IUnityContainer container, IHandlerRegistry registry) { registry.Register(container.Resolve <CustomerViewGenerator>()); registry.Register(container.Resolve <MessageLogHandler>()); }