public void Start() { try { log.Info("Starting"); eventListener.StartEventListenerTask(); ftrConnectionTimer = new Timer(500) { AutoReset = false }; ftrConnectionTimer.Elapsed += this.SetupFTRConnection; ftrConnectionTimer.Start(); if (!int.TryParse(config.GetProperty("sleepTimeInHours"), out waitTime)) { waitTime = 12; } enrichTimer = new Timer(TimeSpan.FromSeconds(15).TotalMilliseconds) { AutoReset = false }; enrichTimer.Elapsed += Enrich; enrichTimer.Start(); } catch (Exception ex) { log.Fatal("Error on starting service", ex); throw; } }