static void Main(string[] args) { AmqpMessagingService messagingService = new AmqpMessagingService(); IConnection connection = messagingService.GetRabbitMqConnection(); IModel model = connection.CreateModel(); messagingService.ReceivePublishSubscribeMessageReceiverTwo(model); }
public static void ReceiveFromPublisher() { AmqpMessagingService messagingService = new AmqpMessagingService(); IConnection connection = messagingService.GetRabbitMqConnection(); IModel model = connection.CreateModel(); messagingService.ReceivePublishSubscribeMessageReceiverTwo(model); }