Ejemplo n.º 1
0
 public PaymentTransfersService(
     IPrivateBlockchainFacadeClient pbfClient,
     IRabbitPublisher <SuccessfulPaymentTransferEvent> successfulPaymentTransferPublisher,
     IRabbitPublisher <RefundPaymentTransferEvent> refundPaymentTransferPublisher,
     ILogFactory logFactory,
     IEmailNotificationsPublisher emailsPublisher,
     IPushNotificationsPublisher pushNotificationsPublisher)
 {
     _log       = logFactory.CreateLog(this);
     _pbfClient = pbfClient;
     _successfulPaymentTransferPublisher = successfulPaymentTransferPublisher;
     _refundPaymentTransferPublisher     = refundPaymentTransferPublisher;
     _emailsPublisher            = emailsPublisher;
     _pushNotificationsPublisher = pushNotificationsPublisher;
 }
 public TransferService(
     string tokenSymbol,
     ICustomerProfileClient customerProfileClient,
     IPrivateBlockchainFacadeClient blockchainFacadeClient,
     IWalletManagementService walletManagementService,
     ITransfersRepository transfersRepository,
     IRabbitPublisher <P2PTransferEvent> p2PTransferEventPublisher,
     IEmailNotificationsPublisher emailsPublisher,
     IPushNotificationsPublisher pushNotificationsPublisher,
     ILogFactory logFactory)
 {
     _customerProfileClient     = customerProfileClient;
     _blockchainFacadeClient    = blockchainFacadeClient;
     _walletManagementService   = walletManagementService;
     _transfersRepository       = transfersRepository;
     _p2PTransferEventPublisher = p2PTransferEventPublisher;
     _tokenSymbol                = tokenSymbol;
     _emailsPublisher            = emailsPublisher;
     _pushNotificationsPublisher = pushNotificationsPublisher;
     _log = logFactory.CreateLog(this);
 }