static void Main(string[] args) { EvsServiceHost.StartService(); System.Console.WriteLine("Press <Enter> to exit"); System.Console.ReadLine(); EvsServiceHost.StopService(); }
protected override void OnStop() { this.EventLog.WriteEntry("OnStop", System.Diagnostics.EventLogEntryType.Information); // stop the EVS Web Service EvsServiceHost.StopService(); base.OnStop(); }