/// <summary> /// Register Your Service in DI /// </summary> /// <typeparam name="TInterface">interface</typeparam> /// <typeparam name="T">implementation</typeparam> public static void RegisterService <TInterface, T>() where T : TInterface { IocService.RegisterService <TInterface, T>(); }
private static void RegisterServices(MvvmConfig mvvmConfig = null) { IocService.RegisterService <IMessagingCenter, MessagingCenter>(); IocService.RegisterService <INavigationService, NavigationService>(); }