Esempio n. 1
0
 public Type GetImplementType(Type interfaceType)
 {
     if (IsRegisteredImplement(interfaceType))
     {
         return(interfaceTable[interfaceType]);
     }
     throw IOCException.NotRegisteredException(interfaceType);
 }
Esempio n. 2
0
 public object GetSingleton(Type interfaceType)
 {
     if (IsRegisteredSingleton(interfaceType))
     {
         return(singletonTable[interfaceType]);
     }
     throw IOCException.NotRegisteredException(interfaceType);
 }