Exemplo n.º 1
0
 /// <summary>
 /// Creates a new Web Context
 /// </summary>
 /// <param name="context">HTTP Context</param>
 public WebContext(HttpContext context)
 {
     this._context  = context;
     this._request  = new WebRequest(context);
     this._response = new WebResponse(context);
 }
Exemplo n.º 2
0
 public ServerContext(HttpServerContext context)
 {
     this._context  = context;
     this._request  = new ServerRequest(context.Request);
     this._response = new ServerResponse(context.Response);
 }