public HttpListenerContextBase(HttpListenerContext context) { Request = new HttpListenerRequestBase(context.Request); Response = new HttpListenerResponseBase(context.Response); }
/// <summary> /// We need this to avoid a CA2214 error on the constructor... /// </summary> /// <param name="context"></param> public void Initialize(HttpListenerContext context) { Request = new HttpListenerRequestBase(context.Request); Response = new HttpListenerResponseBase(context.Response); }