public bool Start(HostControl hostControl) { Logger.Debug("***LicenseBackDateProcessor service starts.***"); Console.WriteLine("Is running as console: " + IsRunningAsConsole(hostControl)); try { _viewManager.DisplayWelcomeMessage(); } catch (Exception failPollingException) { Logger.Error(failPollingException, "*****************Cannot start LicenseBackDateProcessor service.*****************"); return(false); } return(true); }