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