public void StartUp()
        {
            Connect();

            if (_isConnected == false)
            {
                _logger.LogWarning("Not starting ClientConsumer eventing");
                return;
            }

            var consumer = new EventingBasicConsumer(_channel);

            consumer.Received += (model, ea) =>
            {
                var body    = ea.Body;
                var message = Encoding.UTF8.GetString(body);

                var obj = _jsonUtil.DeserializeObject <CandlesReceivedEventArgs>(message);
                CandlesReceived?.Invoke(this, obj);
            };

            _channel.BasicConsume(_channelConfig.QueueName, true, consumer);
        }
 public void Send(CandlesReceivedEventArgs e)
 {
     CandlesReceived?.Invoke(this, e);
 }