private void OnStarted() { _logger.LogInformation($"Starting {nameof(IRouteNetworkSubscriber)}"); _routeNetworkSubscriber.Subscribe(); _logger.LogInformation("Init kafka producer"); _producer.Init(); }
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; } }