public static bool HasRegister <TService>(this IObjectContainer objContainer, string strName) { return(objContainer.HasRegister(typeof(TService), strName)); }