private void Publish(RoutingKey routingKey, Niffle niffle) { Channel.BasicPublish(exchange: ExchangeName, routingKey: routingKey.GetRoutingKey(), basicProperties: RabbitMQProperties.CreateDefaultProperties(Channel), body: niffle.ToByteArray()); }
private void Publish(RoutingKey routingKey, Niffle niffle) { //if (niffle.IsBackTesting) Thread.Sleep(50); Model.BasicPublish(exchange: ExchangeName, routingKey: routingKey.GetRoutingKey(), basicProperties: RabbitMQProperties.CreateDefaultProperties(Model), body: niffle.ToByteArray()); }