private async Task ReceiveWallet(CMsgClientWalletInfoUpdate wallet) { var before = Wallet; var after = Wallet.Create((CurrencyCode)wallet.currency, wallet.balance64, wallet.balance64_delayed); Wallet = after; await WalletUpdated.InvokeAsync(this, new WalletUpdatedEventArgs(before, after)).ConfigureAwait(false); }
public void WalletChanged(decimal currentValue) { WalletValueChanged?.Invoke(_wallet.GetBalance()); WalletUpdated?.Invoke(); }