Пример #1
0
        private void OnStarted()
        {
            _logger.LogInformation($"Starting {nameof(IRouteNetworkSubscriber)}");
            _routeNetworkSubscriber.Subscribe();

            _logger.LogInformation("Init kafka producer");
            _producer.Init();
        }
Пример #2
0
 private void OnStarted()
 {
     try
     {
         _logger.LogInformation($"Starting {nameof(IRouteNetworkSubscriber)}");
         _routeNetworkSubscriber.Subscribe();
         _logger.LogInformation("Init kafka producer");
         _producer.Init();
     }
     catch (Exception e)
     {
         _logger.LogError(e.Message);
         throw;
     }
 }