Example #1
0
        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);
        }
Example #2
0
 public RegistrationItem(RegistrationTag tag, Func <object> lambda)
 {
     Lambda          = lambda;
     RegistrationTag = tag;
 }
Example #3
0
 internal Entry(RegistrationTag tag, Func <object> resolve)
 {
     Tag     = tag;
     Resolve = resolve;
 }