コード例 #1
0
ファイル: Scope.cs プロジェクト: hallco978/Griffin.Container
 public IEnumerable <object> GetServices(Type serviceType)
 {
     return(_container.ResolveAll(serviceType));
 }
コード例 #2
0
 public IEnumerable <TService> ResolveAll <TService>()
 {
     return(_scope.ResolveAll(typeof(TService)).Cast <TService>());
 }
コード例 #3
0
 /// <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>());
 }
コード例 #4
0
 public IEnumerable <TService> ResolveAll <TService>()
 {
     return(_container.ResolveAll(typeof(TService)).Cast <TService>());
 }
コード例 #5
0
 public IEnumerable <object> ResolveAll(Type messageHandlerType)
 {
     return(_scope.ResolveAll(messageHandlerType));
 }