private void Handle(AccountUpdateMessage msg) { if (msg.Data is null) { return; } _logger.LogInformation( $"Account updated | [currency={msg.Data.Currency}] [balance={msg.Data.Balance}] [available={msg.Data.Available}] [changeType={msg.Data.ChangeType}] [accountType={msg.Data.AccountType}]"); }
private bool TryHandleAccountUpdateMessages(string message) { if (AccountUpdateMessage.TryParse(Serializer, message, out var accountUpdateMessage)) { Streams.AccountUpdateMessageSubject.OnNext(accountUpdateMessage); return(true); } return(false); }