private void RegisterEvents() { DomainEventManager.For <GerarEGiftEvent>() .Use <IGerarEGiftDomainService>( () => _factory.Create <IGerarEGiftDomainService>() ); }
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>() ); }
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>() ); }