Inheritance: IHttpContext, IDisposable
Ejemplo n.º 1
0
 public static void Unregister(HttpContext c)
 {
     connections.Remove(c);
 }
Ejemplo n.º 2
0
		private void SendInternalServerError(HttpContext context, Exception exception)
		{
			var generator = new ResponseWriter();
			var response = HttpFactory.Current.Get<IResponse>();
			byte[] body = Encoding.ASCII.GetBytes("Internal server error " + exception);
			response.Body.Write(body, 0, body.Length);
			response.Status = HttpStatusCode.InternalServerError;
			response.Reason = exception.Message;
			generator.Send(context, response);
		}
Ejemplo n.º 3
0
 public static void Register(HttpContext c)
 {
     if (!connections.Contains(c))
         connections.Add(c);
 }