Dependency Injection of a no IDependency Interface

Topics: Writing modules
May 11, 2011 at 6:35 PM

Hi All,

I need inject a service to a content part Driver constructor, but my interface don't implement IDependency interface (both definition and  service implementation is part of a business framework library).

Define as constructor parameter concrete service instead of his interface is not an option cause mocking pourpose. In addiction,  I need to use lot of different services in same condition, so i cannot build a wrapper to all services. 

Are ther an Orchard extension point for register additional no IDependency services, in order to provide dependency injection to a content part driver constructor?

Thanks,

Regards

Gianluca