public void Send(TransportMessage message, Address address) { UnitOfWork.Add(channel => { var properties = RabbitMqTransportMessageExtensions.FillRabbitMqProperties(message, channel.CreateBasicProperties()); RoutingTopology.Send(channel, address, message, properties); }); }
void SendMessage(TransportMessage message, SendOptions sendOptions, dynamic channel) { var destination = DetermineDestination(sendOptions); var properties = channel.CreateBasicProperties(); KafkaTransportMessageExtensions.FillKafkaProperties(message, sendOptions, properties); routingTopology.Send(channel, destination, message, properties); }
void SendMessage(TransportMessage message, SendOptions sendOptions, IModel channel) { var destination = DetermineDestination(sendOptions); var properties = channel.CreateBasicProperties(); RabbitMqTransportMessageExtensions.FillRabbitMqProperties(message, sendOptions, properties); routingTopology.Send(channel, destination, message, properties); }