我使用了Brad Wilson的'UnityFilterAttributeFilterProvider',如此处所述...... http://bradwilson.typepad.com/blog/2010/07/service-location-pt4-filters.html
问题是,当过滤器未指定为全局过滤器时,它似乎才有效。全局过滤器不使用过滤器提供程序吗?
干杯,伊恩。
答案 0 :(得分:1)
从帖子中引用:
此时,无法使用服务定位器注册全局过滤器。
您在注册时手动提供全局过滤器的实例,因此没有DI。