Exemple #1
0
 private void Publish(RoutingKey routingKey, Niffle niffle)
 {
     Channel.BasicPublish(exchange: ExchangeName, routingKey: routingKey.GetRoutingKey(),
                          basicProperties: RabbitMQProperties.CreateDefaultProperties(Channel), body: niffle.ToByteArray());
 }
Exemple #2
0
 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());
 }