I\'m trying to register a filter in a simple mvc application. I haven\'t even really written anything yet outside of the basic filter to test with. I\'m using VS 2015 RC and
With Beta 8 it is now done via AddMvc as follows:
services.AddMvc(options =>
{
options.Filters.Add(new YouGlobalActionFilter());
});
Example of how you can do it in MVC 6
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.ConfigureMvc(options =>
{
options.Filters.Add(new YouGlobalActionFilter());
}
}