Пример #1
0
        private static async Task ProduceMessages()
        {
            for (int i = 1; i <= 100; i++)
            {
                await RabbitMQService.SendToQueue(QueueName.Name1, $"message{i}");

                Console.WriteLine($"message{i} sent to rabbitmq");
            }
        }