コード例 #1
0
ファイル: Program.cs プロジェクト: vczh-codeplex/gac
 static void Main(string[] args)
 {
     if (SimpleHttpServerHost.StartService <Program>("HelloWorld"))
     {
         stopEvent = new ManualResetEvent(false);
         stopEvent.WaitOne();
     }
     else
     {
         Console.WriteLine("Press [ENTER] to exit.");
         Console.ReadLine();
     }
 }
コード例 #2
0
 static void Main(string[] args)
 {
     if (SimpleHttpServerHost.StartService <Program>("NestleSpider"))
     {
         stopEvent = new ManualResetEvent(false);
         do
         {
             Spider.Run();
         } while (!stopEvent.WaitOne(3600 * 1000));
     }
     else
     {
         Console.WriteLine("Press [ENTER] to exit.");
         Console.ReadLine();
     }
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: vczh-codeplex/vlpp
 static void Main(string[] args)
 {
     SimpleHttpServerHost.Run(typeof(Program), host: "localhost", port: 80);
     Console.WriteLine("Press [ENTER] to exit.");
     Console.ReadLine();
 }