Beispiel #1
0
 public void Handle(Response responseGenrate, HttpListenerContext context, string path, HttpListenerResponse response)
 {
     responseGenrate.ResponseGenrator(path, response);
     context.Response.Close();
 }
Beispiel #2
0
 public void Error404NotFound(Dispatch dispatch, Response responseGenrate, HttpListenerResponse response, HttpListenerContext context, string path)
 {
     path = dispatch.Applist["error"] + "404.html";
     responseGenrate.ResponseGenrator(path, response);
     context.Response.Close();
 }