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)
            {
            }
        }
Esempio n. 2
0
        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!
            }
        }