public void RunAsConsole(string[] args) { Logger.Log.Info("Running in console mode!"); TFSIntegrationImplementation integrationImplementation = new TFSIntegrationImplementation(); integrationImplementation.Run(); }
// Specify what you want to happen when the Elapsed event is // raised. private void OnTimedEvent(object source, ElapsedEventArgs e) { Logger.Log.Info($"The Elapsed event was raised at {e.SignalTime}. Start branch syncronization!"); lock (padlock) { integrationImplementation?.Run(tfsConfiguration); } }