Dependency class is a static class used to associate types or resolve instances of types at runtime. The
Dependency class serves as a proxy to an instance of IoC container, allowing you to change the underlying IoC container implementation. It does this by leveraging the Microsoft.Practices.ServiceLocation API, which provides a container agnostic type resolution mechanism. The
Dependency class also uses a custom
IDependencyRegistrar to create type associations, something notably absent from the Microsoft.Practices.ServiceLocation API.
To use the
Dependency class, an IoC container implementation must be specified.
Initialization of the IoC infrastructure should be performed as soon as possible ...