Esempio n. 1
0
 public static ContainerRegistry RegisterInstance <T>(this GeckoContainer geckoContainer, T obj, BaseContext context = null)
 {
     return(geckoContainer.RegisterProvider <T>(new InstanceProvider <T>(obj), context));
 }
Esempio n. 2
0
 public static ContainerRegistry RegisterSingletone <T>(this GeckoContainer geckoContainer, BaseContext context = null)
 {
     return(geckoContainer.RegisterProvider <T>(new SingletonProvider <T>(), context));
 }
Esempio n. 3
0
 public static ContainerRegistry RegisterType <T>(this GeckoContainer geckoContainer, BaseContext context = null)
 {
     return(geckoContainer.RegisterProvider <T>(new FactoryMethodProvider <T>(), context));
 }