Esempio n. 1
0
        static void Main(string[] args)
        {
            if (System.Diagnostics.Process.GetProcessesByName("PoshComplete").Count() == 1)
            {
                Opts opts = new Opts();
                opts.Parse(args);

                using (var nancyHost = new NancyHost(new Uri("http://localhost:" + opts.Port.ToString())))
                {
                    StaticConfiguration.DisableErrorTraces = false;
                    nancyHost.Start();
                    Console.ReadLine();
                    nancyHost.Stop();
                }
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            if (System.Diagnostics.Process.GetProcessesByName("PoshComplete").Count() == 1)
            {
                Opts opts = new Opts();
                opts.Parse(args);

                using (var nancyHost = new NancyHost(new Uri("http://localhost:" + opts.Port.ToString())))
                {
                    StaticConfiguration.DisableErrorTraces = false;
                    nancyHost.Start();
                    Console.ReadLine();
                    nancyHost.Stop();
                }
            }
        }