In Prism Unity 5, they have come up with the TryResolve function that has been included in the namespace Microsoft.Practices.Prism.UnityExtensions.
Please go through this link https://msdn.microsoft.com/en-us/library/gg419013(v=pandp.50).aspx for reference.