Example #1
0
 private void RegisterEvents()
 {
     DomainEventManager.For <GerarEGiftEvent>()
     .Use <IGerarEGiftDomainService>(
         () => _factory.Create <IGerarEGiftDomainService>()
         );
 }
Example #2
0
        private void RegisterEvents()
        {
            DomainEventManager.For <EnviarCodigoClienteEvent>()
            .Use <IPedidoDomainService>(
                () => _factory.Create <IPedidoDomainService>()
                );

            DomainEventManager.For <EnfileirarEvent>()
            .Use <IPedidoDomainService>(
                () => _factory.Create <IPedidoDomainService>()
                );

            DomainEventManager.For <IntegrarParceiroEvent>()
            .Use <IPedidoDomainService>(
                () => _factory.Create <IPedidoDomainService>()
                );

            DomainEventManager.For <IntegrarERPEvent>()
            .Use <IPedidoDomainService>(
                () => _factory.Create <IPedidoDomainService>()
                );
        }
Example #3
0
        private void RegisterEvents()
        {
            DomainEventManager.For <InserirEvent>()
            .Use <ICompraParceiroDomainService>(
                () => _factory.Create <ICompraParceiroDomainService>()
                );

            DomainEventManager.For <AlterarEvent>()
            .Use <ICompraParceiroDomainService>(
                () => _factory.Create <ICompraParceiroDomainService>()
                );

            DomainEventManager.For <ObterUltimaEvent>()
            .Use <ICompraParceiroDomainService>(
                () => _factory.Create <ICompraParceiroDomainService>()
                );

            DomainEventManager.For <AlterarStatusAceiteEvent>()
            .Use <ICompraParceiroDomainService>(
                () => _factory.Create <ICompraParceiroDomainService>()
                );


            DomainEventManager.For <AlterarStatusParceiroEvent>()
            .Use <ICompraParceiroDomainService>(
                () => _factory.Create <ICompraParceiroDomainService>()
                );


            DomainEventManager.For <AlterarStatusAtivacaoEvent>()
            .Use <ICompraParceiroDomainService>(
                () => _factory.Create <ICompraParceiroDomainService>()
                );

            DomainEventManager.For <AlterarStatusERPEvent>()
            .Use <ICompraERPDomainServices>(
                () => _factory.Create <ICompraERPDomainServices>()
                );
        }