Exemplo n.º 1
0
 public IEnumerable <object> GetServices(Type serviceType)
 {
     return(_container.ResolveAll(serviceType));
 }
 public IEnumerable <TService> ResolveAll <TService>()
 {
     return(_scope.ResolveAll(typeof(TService)).Cast <TService>());
 }
 /// <summary>
 /// Resolve all implementations
 /// </summary>
 /// <typeparam name="T">Service that we want implementations for.</typeparam>
 /// <returns>A collection of implementations; an empty collection if none is found.</returns>
 public IEnumerable <T> ResolveAll <T>() where T : class
 {
     return(_childContainer.ResolveAll <T>());
 }
Exemplo n.º 4
0
 public IEnumerable <TService> ResolveAll <TService>()
 {
     return(_container.ResolveAll(typeof(TService)).Cast <TService>());
 }
Exemplo n.º 5
0
 public IEnumerable <object> ResolveAll(Type messageHandlerType)
 {
     return(_scope.ResolveAll(messageHandlerType));
 }