Exemple #1
0
 SMConfig Push(SMConfig s)
 {
     s.ToCollect  = ToCollect;
     s.Registrars = Registrars;
     s.Singletons = Singletons;
     toRegister.Push(s);
     return(s);
 }
Exemple #2
0
 public ILocatorConfigSpec Register <Service>(Func <Service> implimentation) where Service : class => Push(SMConfig.Create(implimentation));
Exemple #3
0
 public IConfigSpec Register <Service, Implimentation>() where Implimentation : class, Service where Service : class => Push(SMConfig.Create <Service, Implimentation>());
Exemple #4
0
 public ILocatorConfigSpec Register(Type service, Func <object> creator) => Push(SMConfig.Create(service, creator));
Exemple #5
0
 public IConfigSpec Register(Type service, Type impl) => Push(SMConfig.Create(service, impl));