views:

51

answers:

1

I have a logger interface that I inject into many different classes, can I inject that class in say a repository class, which is also an Import class which is injected into other classes?

Hope that makes sense, I'm a little confused by it myself.

Thx

+2  A: 

Yes, a class can both import and export parts.

Glenn Block explains it well in his article Managed Extensibility Framework: Building Composable Apps in .NET 4 with the Managed Extensibility Framework.

Mark Seemann