/// <summary>
        /// 注入所有服务
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public object[] GetAllService(Type type)
        {
            Type enumerableOfType = typeof(IEnumerable <>).MakeGenericType(type);

            return((object[])_container.ResolveService(new TypedService(enumerableOfType)));
        }