Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt Jones 30 posts 141 karma points
    May 01, 2013 @ 22:20
    Matt Jones
    0

    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 :)

  • Matt Jones 30 posts 141 karma points
    May 02, 2013 @ 13:39
    Matt Jones
    100

    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....

Please Sign in or register to post replies

Write your reply to:

Draft