/// <summary> /// Gets all instances of the specified service. /// </summary> /// <param name="service">Specified service type.</param> /// <param name="name">The specified binding name.</param> /// <param name="parameters">The specified parameters.</param> /// <returns>An instance of the service.</returns> public IEnumerable <object> GetAll(Type service, string name = null, params IIocParameter[] parameters) { this.NotBeDisposed(); Should.NotBeNull(service, "service"); if (name == null) { return(_injector.GetAll(service, ConvertParameters(parameters))); } return(_injector.GetAll(service, name, null, ConvertParameters(parameters))); }