AspNetWebApi.DependencyResolution.AutoFac.AutoFacDependencyResolver.GetServices C# (CSharp) Method

GetServices() public method

public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable
        public IEnumerable<object> GetServices(Type serviceType)
        {
            object instance = null;
            var ienumerableType = typeof (IEnumerable<>).MakeGenericType(serviceType);
            _container.TryResolve(ienumerableType, out instance);
            return (IEnumerable<object>) instance;
        }