1

I have an authentication filter that I want to inject with the authentication source. I'm using light inject and I have EnableAnnotatedPropertyInjection() enabled on the container, [Inject] above the property of the filter, and the type of he property, RegisterInstance<IMyAuth>(), registered and being injected into other controllers in my solution. What are the requirements for having LightInject perform property injection on a IAuthenticationFilter.

QueueHammer
  • 10,515
  • 12
  • 67
  • 91
  • Related: https://stackoverflow.com/questions/30096903/dependency-injection-inside-a-filterattribute-in-asp-net-mvc-6 – Steven Apr 18 '16 at 20:41

0 Answers0