Пример #1
0
        public IEnumerable <object> ResolveAll(Type dependencyType)
        {
            Guard.AgainstNull(dependencyType, "dependencyType");

            try
            {
                return(_container.GetAllInstances(dependencyType));
            }
            catch (Exception ex)
            {
                throw new TypeResolutionException(ex.Message, ex);
            }
        }
Пример #2
0
 public IEnumerable <T> GetAll <T>()
 {
     return(_container.GetAllInstances <T>());
 }
Пример #3
0
 /// <inheritdoc/>
 public IEnumerable <T> GetAll <T>()
 {
     return(_container.GetAllInstances(typeof(T)) as IEnumerable <T>);
 }