Ejemplo n.º 1
0
 private void BeginRequest(object sender, EventArgs e)
 {
     if (HttpContext.Current != null && HttpContext.Current.IsDebuggingEnabled)
     {
         HttpContextRadarGun.Start();
     }
 }
Ejemplo n.º 2
0
 private void Context_PreSendRequestHeaders(object sender, EventArgs e)
 {
     HttpContextRadarGun.Stop();
     if (HttpContext.Current != null && HttpContext.Current.IsDebuggingEnabled)
     {
         HttpContext.Current.Response.Headers.Add("RadarGun", HttpContextRadarGun.GetMessages());
     }
 }