/// <summary>
        /// 创建实现了指定接口的HttpApiClient实例
        /// </summary>
        /// <typeparam name="TInterface">请求接口类型</typeparam>
        /// <exception cref="ArgumentException"></exception>
        /// <exception cref="NotSupportedException"></exception>
        /// <returns></returns>
        public static TInterface Create <TInterface>() where TInterface : class, IDisposable
        {
            var config = new HttpApiConfig();

            return(Create <TInterface>(config));
        }
 /// <summary>
 /// Api请求的异步任务
 /// </summary>
 /// <param name="httpApiConfig">http接口配置</param>
 /// <param name="apiActionDescriptor">api描述</param>
 public ApiTaskOf(HttpApiConfig httpApiConfig, ApiActionDescriptor apiActionDescriptor)
 {
     this.httpApiConfig       = httpApiConfig;
     this.apiActionDescriptor = apiActionDescriptor;
 }
 /// <summary>
 /// 创建实现了指定接口的HttpApiClient实例
 /// </summary>
 /// <typeparam name="TInterface">请求接口类型</typeparam>
 /// <param name="httpApiConfig">接口配置</param>
 /// <exception cref="ArgumentNullException"></exception>
 /// <exception cref="ArgumentException"></exception>
 /// <exception cref="NotSupportedException"></exception>
 /// <returns></returns>
 public static TInterface Create <TInterface>(HttpApiConfig httpApiConfig) where TInterface : class
 {
     return(Create(typeof(TInterface), httpApiConfig) as TInterface);
 }