private void ConfigureParameters(RpcConnectionConfiguration configuration)
 {
     _exchangeName       = configuration.Exchange;
     _routingKey         = configuration.RoutingKey;
     _responseQueue      = configuration.ResponseQueue;
     _responseRoutingKey = configuration.ResponseRoutingKey;
 }
 public async Task SendAsync(RpcConnectionConfiguration configuration, object message)
 {
     ConfigureParameters(configuration);
     InitializeExchanges();
     if (message is UserInfoToModel model)
     {
         _responseRoutingKey += $"-{model.RevenueForecastId}";
     }
     InitializeResponseQueue();
     await Task.Run(
         () =>
     {
         Console.WriteLine(JsonConvert.SerializeObject(message));
         var body = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(message));
         _connectionService.Channel.BasicPublish(_exchangeName, _routingKey, null, body);
         Console.WriteLine(" [x] Sent {0}", message);
     }
         );
 }