コード例 #1
0
 public string executeRequest(string page)
 {
     "executing request".info();
     createHost();
     return(WebServerHost.ProcessRequest(page));
     //return WebServerHost_.invoke("ProcessRequest", page).str();
 }
コード例 #2
0
 public void createHost()
 {
     //if (WebServerHost.isNull())
     {
         var o2Timer = new O2Timer("Creating WebServer host").start();
         WebServerHost = (WebServerHost)ApplicationHost.CreateApplicationHost(typeof(WebServerHost), "/", WebRootDir);
         //WebServerHost = ApplicationHost.CreateApplicationHost(typeof(WebServerHost), "/", WebRootDir);
         o2Timer.stop();
     }
 }