public static void RegisterServiceInstance <TInterface>(this IMvxProducer producer, TInterface service) where TInterface : class { Mvx.RegisterSingleton(service); }
public static void RegisterServiceType <TInterface, TType>(this IMvxProducer producer) where TInterface : class where TType : class, TInterface { Mvx.RegisterType <TInterface, TType>(); }
public static void RegisterServiceInstance <TInterface>(this IMvxProducer producer, Func <TInterface> serviceConstructor) where TInterface : class { Mvx.RegisterSingleton(serviceConstructor); }