Пример #1
0
        private static IEventBus InitializeEventBus()
        {
            var bus = new InProcessEventBus();
            bus.RegisterAllHandlersInAssembly(typeof(NoteItemDenormalizer).Assembly);

            bus.RegisterAllConverseHandlersInAssembly(typeof(NoteConversations).Assembly);

            return bus;
        }
Пример #2
0
        private static IEventBus InitializeEventBus()
        {
            var bus = new InProcessEventBus();

            bus.RegisterAllHandlersInAssembly(typeof(NoteItemDenormalizer).Assembly);

            bus.RegisterAllConverseHandlersInAssembly(typeof(NoteConversations).Assembly);

            return(bus);
        }