Given this way of creating an instance of a class requires specifying the concrete implementation, how do I use DI (dependency Injection) AND Policy Injection at the same time ?
var o
=PolicyInjection.Create<ConcreteImplementation,Interface>();
If I have to provide the concrete implementation as part of construction then it defeats the entire idea of DI.
Am I missing something or is this a limitation with Policy Injection ?
RahulMisra20...
0 Points
2 Posts
Policy Injection Block does not seem to support Dependency Injection (DI)
Mar 15, 2012 01:43 PM|LINK
Hi,
Thank you for taking the time to read this.
Given this way of creating an instance of a class requires specifying the concrete implementation, how do I use DI (dependency Injection) AND Policy Injection at the same time ?
var o = PolicyInjection.Create<ConcreteImplementation, Interface>();
If I have to provide the concrete implementation as part of construction then it defeats the entire idea of DI.
Am I missing something or is this a limitation with Policy Injection ?
Thank you.