AcklenAvenue.Data.Sample.MVC.StructureMapDependencyResolver.GetServices C# (CSharp) Method

GetServices() public method

public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable
        public IEnumerable<object> GetServices(Type serviceType)
        {
            return _container.GetAllInstances<object>()
                .Where(s => s.GetType() == serviceType);
        }