Tag: Action Filters

Aug 13

How to Inject Dependency in Action Filter

How to Inject Dependency in Action Filter 1.  Introduction In designing an object-oriented application, a major tenet of design is “loose coupling”. Furthermore, an object’s dependencies should be on interfaces and not on “concrete” objects, when possible. Loose coupling promotes greater reusability, easier maintainability. “Dependency Injection” (DI), also more cryptically known as “Inversion of Control” …

Continue reading »