static void Main(string[] args) { if (args.Length > 0 && args[args.Length - 1].Contains("/console")) { var console = new HypermediaApiConsole(); var baseAddress = (args.Length == 0) ? "http://hypermediaapi.com" : args[0]; console.Run(baseAddress); } else { ServiceBase.Run(new ServiceBase[] { new HypermediaApiService() }); } }
static void Main(string[] args) { if (args.Length > 0 && args[args.Length -1].Contains("/console")) { var console = new HypermediaApiConsole(); var baseAddress = (args.Length == 0) ? "http://hypermediaapi.com" : args[0]; console.Run(baseAddress); } else { ServiceBase.Run(new ServiceBase[] { new HypermediaApiService() }); } }