Inheritance: CookComputing.XmlRpc.IHttpResponse
Esempio n. 1
0
 void IHttpHandler.ProcessRequest(HttpContext RequestContext) 
 {
   try
   {
     // store context for access from application code in derived classes
     context = RequestContext;
     // XmlRpc classes delegate to the corresponding Context classes
     XmlRpcHttpRequest httpReq = new XmlRpcHttpRequest(context.Request);
     XmlRpcHttpResponse httpResp = new XmlRpcHttpResponse(context.Response);
     HandleHttpRequest(httpReq, httpResp);
   }
   catch (Exception ex)
   {
     RequestContext.Response.StatusCode = 500;  // "Internal server error"
     RequestContext.Response.StatusDescription = ex.Message;
   }
 }
Esempio n. 2
0
 void IHttpHandler.ProcessRequest(HttpContext RequestContext)
 {
     try
     {
         // store context for access from application code in derived classes
         context = RequestContext;
         // XmlRpc classes delegate to the corresponding Context classes
         XmlRpcHttpRequest  httpReq  = new XmlRpcHttpRequest(context.Request);
         XmlRpcHttpResponse httpResp = new XmlRpcHttpResponse(context.Response);
         HandleHttpRequest(httpReq, httpResp);
     }
     catch (Exception ex)
     {
         RequestContext.Response.StatusCode        = 500; // "Internal server error"
         RequestContext.Response.StatusDescription = ex.Message;
     }
 }