示例#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();
                }
            }
        }
示例#2
0
文件: Program.cs 项目: beaudryj/vim
        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();
                }
            }
        }