public static void PublishToSubscribers() { AmqpMessagingService messagingService = new AmqpMessagingService(); IConnection connection = messagingService.GetRabbitMqConnection(); IModel model = connection.CreateModel(); messagingService.SetUpExchangeAndQueuesForDemo(model); RunPublishSubscribeMessageDemo(model, messagingService); }
static void Main(string[] args) { AmqpMessagingService messagingService = new AmqpMessagingService { MessageQueueName = MEP.RemoteProcedureCall_RPC.ToString() }; IConnection connection = messagingService.GetRabbitMqConnection(); IModel model = connection.CreateModel(); //messagingService.SetUpQueueForWorkerQueueDemo(model); messagingService.SetUpQueueForRpcDemo(model); messagingService.SetUpExchangeAndQueuesForDemo(model); RunPublishSubscribeMessageDemo(model, messagingService); //RunWorkerQueueMessageDemo(model, messagingService); }