private void BwBalancesQuery(object sender, DoWorkEventArgs e) { var walletBalance = LndClient.WalletBalance(); var channelBalance = LndClient.ChannelBalance(); var result = Tuple.Create(walletBalance, channelBalance); e.Result = result; }
private void BwBalancesQuery(object sender, DoWorkEventArgs e) { try { var walletBalance = LndClient.WalletBalance(); var channelBalance = LndClient.ChannelBalance(); var result = Tuple.Create(walletBalance, channelBalance); e.Result = result; } catch (RpcException) { e.Result = null; } }