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