Example #1
0
        private static void Main(string[] args)
        {
            PostAppInit.Do();
            var pg = new Program();

            pg.LoadCommands();
            pg.ProgramMain(args);
        }
Example #2
0
        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();
            }
        }