Example #1
0
 public IEnumerable <object> GetServices(Type serviceType)
 {
     if (IsRegistered(serviceType))
     {
         yield return(ChildContainer.Resolve(serviceType));
     }
     foreach (var service in ChildContainer.ResolveAll(serviceType))
     {
         yield return(service);
     }
 }
 public IEnumerable <object> GetServices(Type serviceType)
 {
     return(ChildContainer.ResolveAll(serviceType));
 }