public async Task ProduceCashOutCommand(string id, SolarCoinAddress addressTo, double amount)
 {
     await _queueExt.PutRawMessageAsync(new SolarCashOutCommand
     {
         Id      = id,
         Amount  = amount,
         Address = addressTo.Value
     }.ToJson());
 }
        private async Task PostSolarCashOut(string clientId, string address, double amount, string txId)
        {
            var slrAddress = new SolarCoinAddress(address);
            var clientAcc  = _clientAccountsRepository.GetByIdAsync(clientId);

            var sendEmailTask    = _srvEmailsFacade.SendSolarCashOutCompletedEmail((await clientAcc).Email, slrAddress.Value, amount);
            var solarRequestTask = _srvSolarCoinHelper.SendCashOutRequest(txId, slrAddress, amount);

            await Task.WhenAll(sendEmailTask, solarRequestTask);
        }
Example #3
0
 public Task SendCashOutRequest(string id, SolarCoinAddress addressTo, double amount)
 {
     return(_solarCoinCommandProducer.ProduceCashOutCommand(id, addressTo, amount));
 }