public OHMService() { this.ServiceName = "Open Hardware Monitor"; this.CanStop = true; this.CanPauseAndContinue = true; this.AutoLog = true; _provider = new DataProvider (); }
public static void Main(string[] args) { _provider = new DataProvider (); AppDomain.CurrentDomain.ProcessExit += ExitHandler; Console.CancelKeyPress += ExitHandler; // wait until terminated while (true) { Thread.Sleep (500); } }