static void Main(string[] args) { //NOTE: Simulate a long running service var svc = new LongRunningService(); Server.Start<ISignalListener>(svc, "LongRunningService"); Console.WriteLine("Open cmd promt, type \"DD -s LongRunningService -w 10\" without quotes to exit this console app"); Console.ReadKey(); }
static void Main(string[] args) { //NOTE: Simulate a long running service var svc = new LongRunningService(); Server.Start <ISignalListener>(svc, "LongRunningService"); Console.WriteLine("Open cmd promt, type \"DD -s LongRunningService -w 10\" without quotes to exit this console app"); Console.ReadKey(); }