/// <summary>
 /// 调试视图
 /// </summary>
 /// <param name="httpApi">查看的对象</param>
 public DebugView(HttpApi httpApi)
 {
     this.IsDisposed     = httpApi.IsDisposed;
     this.ApiInterceptor = httpApi.ApiInterceptor;
 }
 /// <summary>
 /// 创建TInterface接口的代理实例
 /// </summary>
 /// <param name="httpApiConfig">httpApi配置</param>
 /// <returns></returns>
 protected virtual HttpApi CreateHttpApi(HttpApiConfig httpApiConfig)
 {
     return(HttpApi.Create(this.InterfaceType, httpApiConfig));
 }
Exemple #3
0
 /// <summary>
 /// 调试视图
 /// </summary>
 /// <param name="target">查看的对象</param>
 public DebugView(HttpApi target)
     : base(target.ApiInterceptor)
 {
 }