private IocBuilder AddRegistration <TAbstract>(RegistrationTag tag, Func <object> lambda) { var type = typeof(TAbstract); lastItem = new RegistrationItem(tag, lambda); lastKey = new RegistrationKey(type); registrations.Add(lastKey, lastItem); return(this); }
public RegistrationItem(RegistrationTag tag, Func <object> lambda) { Lambda = lambda; RegistrationTag = tag; }
internal Entry(RegistrationTag tag, Func <object> resolve) { Tag = tag; Resolve = resolve; }