Esempio n. 1
0
        private void PreparePublisher(IRabbitService publisher, RabbitConfig config)
        {
            try
            {
                publisher.InitializePublisher(PublisherName, config);

                _logger.LogInformation("connection established successfully");
            }
            catch (Exception e)
            {
                _logger.LogError(e, "can't connect to rabbit");

                throw;
            }
        }