0

i've been trying to get my head around on EntLib 5.1 Unity and it's confusing me a lot http://msdn.microsoft.com/en-us/library/ff660864%28v=PandP.20%29.aspx.

Could anyone please tell me on what type of scenario I can use Unity?

I've a requirement to load the specific dll based on request type. Can Unity be used on this scenario?

Thanks a lot.

Nil Pun
  • 17,035
  • 39
  • 172
  • 294
  • possible duplicate of [Purpose of Unity Application Block in Microsoft Enterprise Library?](http://stackoverflow.com/questions/1712414/purpose-of-unity-application-block-in-microsoft-enterprise-library) – onof Aug 02 '11 at 11:59

1 Answers1

0

For dynamically loading DLLs, you may want to take a look at MEF.

Unity is for decoupling dependencies among classes to make it easier to write testable, reusable code.

It is an Inversion of Control (IoC) container library that makes it easier to do Dependency Injection. There are numerous examples on Stack Overflow. Note that you can configure Unity in code (my preference) or with a configuration file.

Community
  • 1
  • 1
TrueWill
  • 25,132
  • 10
  • 101
  • 150