public static IUnityContainer RegisterComponents() { var container = new UnityContainer(); new UnityRegistar().Register(container); var unityAdapter = new UnityServiceLocatorAdapter(container); ServiceLocator.SetLocatorProvider(() => unityAdapter); return container; }
public static IUnityContainer RegisterComponents() { var container = new UnityContainer(); new UnityRegistar().Register(container); var unityAdapter = new UnityServiceLocatorAdapter(container); ServiceLocator.SetLocatorProvider(() => unityAdapter); return(container); }