QueueHammer
QueueHammer

Reputation: 10834

How do I enable property injection for filters with LightInject?

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.

Upvotes: 1

Views: 424

Answers (0)

Related Questions