News for hackers. Stuff that matters.
Re:Open Source .NET libraries that make your life easier by iaskwhy on Friday April 10, 2015 @11:52AM (#9355113)
I use something similar to debug a WCF project:

  private static void Main()
  {
    var serviceHandler = new ServiceHandler();

    if (Environment.UserInteractive)
    {
      serviceHandler.OnStart(null);
      Console.WriteLine("Service started! Press <ENTER> to terminate service.");
      Console.ReadLine();
      serviceHandler.OnStop();
      Console.WriteLine("Service stopped!");
      return;
    }
    
    Run(serviceHandler);
  }

There are no comments on this comment yet.