Skip to content

JohnGoldInc/ErrorUnit.Injector_Mvc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

ErrorUnit.Injector_Mvc

Documentation on using ErrorUnit Mvc ActionFilter to instrument calls

To catch MVC Errors add to the FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters) method that is called by Global.asax.cs Application_Start method the code: filters.Add(new ErrorUnit.Attributes.ErrorUnitActionFilterAttribute());

Examples

So the full code for the FilterConfig class in you App_Start folder should look like:

using System.Web;
using System.Web.Mvc;

public class FilterConfig
{
   public static void RegisterGlobalFilters(GlobalFilterCollection filters)
   {
       filters.Add(new ErrorUnit.Attributes.ErrorUnitMvcActionFilterAttribute());
       //anything else ...
   }
}

About

Documentation on using ErrorUnit Mvc ActionFilter to instrument calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published