示例#1
0
 public BusControl(IEnterpriseServiceBus enterpriseServiceBus, IContainer container)
 {
     _subscribers          = new List <object>();
     _externalMessages     = new Queue <IIntegrationEvent>();
     _enterpriseServiceBus = enterpriseServiceBus;
     _container            = container;
 }
        public EventAggregator(IEnterpriseServiceBus enterpriseServiceBus)
        {
            Subscribers = new List <object>();
            this.enterpriseServiceBus = enterpriseServiceBus;

            Subscribe(new ActionHandler <TransactionCommitedEvent>(a => {
                PublishExternalMessages();
            }));
        }