public IEnumerable <object> GetServices(Type serviceType)
 {
     try
     {
         return(_container.GetAllInstances(serviceType).Cast <object>());
     }
     catch
     {
         return(null);
     }
 }
 public static IEnumerable <T> GetAllInstances <T>()
 {
     return(TheContainer.GetAllInstances <T>());
 }
Пример #3
0
        public override IEnumerable <object> GetServices(Type serviceType)
        {
            IEnumerable <object> allInstances = _container.GetAllInstances(serviceType).Cast <object>().Concat(base.GetServices(serviceType));

            return(allInstances);
        }