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