public class Something { //use this public Something(IUnityContainer container) { Container = container; } //or this public IUnityContainer Container { get; set; } }Found here
Wednesday, June 17, 2009
Unity IoC - context aware
Unity will inject it self into constructor or property with IUnityContainer interface. No need to implement any "ApplicationContextAware"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment