public static void RunServiceMode(string[] args) { using (var stfWebService = new StfWebApiService()) { stfWebService.Run(args); } }
private static void RunDebugMode() { Console.WriteLine("Starting Web Api Server..."); var service = new StfWebApiService(); service.RunDebug(new[] { "localhost" }); Console.ReadKey(); }