We have a WPF application split into a few C sharp projects. Our Business layer needs to also register some Service objects with the Container. We believe the way to do this with Unity is
Container.RegisterType<ISomeClass,SomeClass>();
in the Business layer C sharp library and then in the main UI application
UnityContainer.AddNewExtension<T>();
The above is detailed here https://www.c-sharpcorner.com/article/dependency-injection-using-unity-resolve-dependency-of-dependencies/
If we are using Prism what are the equivalent methods? Specifically we were thinking of just using Unity (not Prism )in the business library so that we can port it to Xamarin Mac and Linux. We would use Prism in the WPF UI application project only. Could this work?
Thanks