/// <summary> /// Constructs a new instance of the <see cref="ServerEngine"/> class and opens a /// connection to the database. /// </summary> public ServerEngine() { settings = ServerSettings.Instance(); dbcon = null; ConnectToDatabase(); }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { ServerSettings.Instance().Log.LogError("An unhandled exception occured in CrawlWaver.Service: " + ((Exception)e.ExceptionObject).ToString()); }
public Service() { InitializeComponent(); settings = ServerSettings.Instance(); }