Ejemplo n.º 1
0
        private Task AccountChanged(IMarginTradingAccount account, AccountEventTypeEnum eventType)
        {
            var message = new AccountChangedMessage
            {
                Account   = account.ToFullBackendContract(_settings.IsLive),
                EventType = eventType,
            };

            return(TryProduceMessageAsync(_settings.RabbitMqQueues.AccountChanged.ExchangeName, message));
        }