示例#1
0
        public Bus(IEventFactory eventFactory,
                   ILifetimeScope currentScope,
                   ISubscriberRegistry registry)
        {
            _eventFactory = eventFactory;
            _currentScope = currentScope;
            _registry     = registry;

            _lockObject = new object();

            _eventQueue = new EventQueue(currentScope);
        }
示例#2
0
 public ConfigModule(params System.Reflection.Assembly[] assemblies)
 {
     _listenerRegistry = ListenerRegistryConfigurator.Configure(assemblies);
 }