public void OnBeginRequest(object sender, EventArgs e) { HttpContext context = ((HttpApplication)sender).Context; try { GatingService service = new GatingService(context.Request, context.Response); service.HandleGating(); } catch (Exception ex) { } }
public void OnBeginRequest(object sender, EventArgs e) { HttpContext context = ((HttpApplication)sender).Context; try { GatingService service = new GatingService(context.Request, context.Response); service.HandleGating(); } catch (Exception ex) { //in order to remain less invasive, nothing will be rendered here! } }