it:ad:unity:howto:get_the_iunitycontainer_from_the_mspp_servicelocator

Turns out that the IUnityContainer self registers itself, so you can:

var container = ServiceLocator.Current.GetInstance<IUnityContainer>();

With XActLib, after you have registered it, you can to get to the IoC:

var container = XAct.Library.Status.BindingResults.IoC;
  • /home/skysigal/public_html/data/pages/it/ad/unity/howto/get_the_iunitycontainer_from_the_mspp_servicelocator.txt
  • Last modified: 2023/11/04 23:03
  • by 127.0.0.1