private async Task ProcessWalletAsync(WalletMqModel wallet) { try { var param = new List <WallerChangeRequest>( from w in wallet.Wallets select new WallerChangeRequest { Assert = "BTC", DeltaAmount = w.AmountChange, WalletAddress = w.Address }); await _walletClient.ApiWalletPostWithHttpMessagesAsync(param); } catch (Exception ex) { await _log.WriteErrorAsync(ProcessRequest.ComponentName, null, null, ex); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='changeRequest'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ApiWalletPostAsync(this ILykkePayServiceGenerateAddressMicroService operations, IList <WallerChangeRequest> changeRequest = default(IList <WallerChangeRequest>), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ApiWalletPostWithHttpMessagesAsync(changeRequest, null, cancellationToken).ConfigureAwait(false)).Dispose(); }