private static void Main(string[] args) { PostAppInit.Do(); var pg = new Program(); pg.LoadCommands(); pg.ProgramMain(args); }
private static void Main(string[] args) { PostAppInit.Do(); using (WebServiceHost host = new WebServiceHost( new NancyWcfGenericService(), new Uri(HostSetting.Default.WebHostAddress))) { host.AddServiceEndpoint( typeof(NancyWcfGenericService), new WebHttpBinding(), ""); host.Open(); Console.ReadLine(); host.Close(); } }