public SynchronousBus(IWindsorContainer container)
 {
     _container = container;
     _handlersResolver = new MessageHandlersResolver(container: container,
         handlerInterfaces: new[] { typeof(IHandleInProcessMessages<>), typeof(IHandleMessages<>) },
         excludedHandlerInterfaces: new[] { typeof(IHandleRemoteMessages<>) });
     _messageHandlersInvoker = new MessageHandlersInvoker(container, _handlersResolver);
 }
Exemplo n.º 2
0
 public SynchronousBus(IWindsorContainer container)
 {
     _container        = container;
     _handlersResolver = new MessageHandlersResolver(container: container,
                                                     handlerInterfaces: new[] { typeof(IHandleInProcessMessages <>), typeof(IHandleMessages <>) },
                                                     excludedHandlerInterfaces: new[] { typeof(IHandleRemoteMessages <>) });
     _messageHandlersInvoker = new MessageHandlersInvoker(container, _handlersResolver);
 }
        public EventsReplayer(IWindsorContainer container)
        {
            var handlerResolver = new MessageHandlersResolver(
                container: container,
                handlerInterfaces: new[] { typeof(IHandleReplayedEvents<>) },
                excludedHandlerInterfaces: new[] { typeof(IHandleRemoteMessages<>) }
            );

            _handlersInvoker = new MessageHandlersInvoker(container, handlerResolver);
        }