I got this to work in the end, I was already using StructureMap for dependency injection of an interface to some external data models, StructureMap had created a
class in the App_Start folder with a Start() method so i moved my RegisterGlobalFilters method to this class and added the filters in the Start() method.
In my ActionFilter class I'm overriding OnActionExecuting instead of OnResultExecuting - but i'm not sure which is right here....
MVC Register Global Filter -Umbraco 6.04
Hi
I posted in the Razor forum but I think this question should be here:
http://our.umbraco.org/forum/developers/razor/40601-MVC-Register-Global-Filter-Umbraco-604
Any help appreciated :)
I got this to work in the end, I was already using StructureMap for dependency injection of an interface to some external data models, StructureMap had created a
class in the App_Start folder with a Start() method so i moved my RegisterGlobalFilters method to this class and added the filters in the Start() method.
In my ActionFilter class I'm overriding OnActionExecuting instead of OnResultExecuting - but i'm not sure which is right here....
is working on a reply...