Autofac attribute injection failing on attributes
问题 I've found a few questions on this, but they tend to point to the exact documentation I'm following... but it's still not working. I'm building a fairly simple ASP.NET MVC 4 site, and the plan is to use ActionFilterAttribute -based logging. I have a DataAccessProvider class which opens transactions with the database and provides unit-of-work instances, and I'm trying to inject it into the filter attribute. The documentation says that it's enough to just call RegisterFilterProvider() , and