public static void AttachExceptionFilter(HttpApplication context, RaygunHttpModule module)
 {
   Filter filter = GlobalFilters.Filters.FirstOrDefault(f => f.Instance.GetType().FullName.Equals("System.Web.Mvc.HandleErrorAttribute"));
   if (filter != null)
   {
     if (!GlobalFilters.Filters.Any(f => f.Instance.GetType() == typeof(RaygunExceptionFilterAttribute)))
     {
       GlobalFilters.Filters.Add(new RaygunExceptionFilterAttribute(context, module));
     }
   }
 }
Beispiel #2
0
        public static void AttachExceptionFilter(HttpApplication context, RaygunHttpModule module)
        {
            Filter filter = GlobalFilters.Filters.FirstOrDefault(f => f.Instance.GetType().FullName.Equals("System.Web.Mvc.HandleErrorAttribute"));

            if (filter != null)
            {
                if (!GlobalFilters.Filters.Any(f => f.Instance.GetType() == typeof(RaygunExceptionFilterAttribute)))
                {
                    GlobalFilters.Filters.Add(new RaygunExceptionFilterAttribute(context, module));
                }
            }
        }
Beispiel #3
0
 public RaygunExceptionFilterAttribute(HttpApplication application, RaygunHttpModule httpModule)
 {
     _application = application;
     _httpModule  = httpModule;
 }
 public RaygunExceptionFilterAttribute(HttpApplication application, RaygunHttpModule httpModule)
 {
   _application = application;
   _httpModeule = httpModule;
 }
 public void SetUp()
 {
     _module = new RaygunHttpModule();
       _module.Init(new System.Web.HttpApplication());
 }