漂泊雪狼的博客

思考,讨论,分享C#,JavaScript,.NET,Oracle,SQL Server……技术

导航

asp.net mvc5中使用Swagger 自动生成WebApi文档笔记

Posted on 2018-07-14 18:52  漂泊雪狼  阅读(2742)  评论(1编辑  收藏  举报

Swagger可以自动生成Api说明文档,并内置在线测试,通过NSwagStudio还可以自动生成Api客户端调用代码,以下为具体实现步骤

1、写一个简单的WebApi并加上注释

 1  public class ValuesController : ApiController
 2     {
 3   
 4         /// <summary>
 5         /// 这是一个Post测试
 6         /// </summary>
 7         /// <param name="para"></param>
 8         /// <returns></returns>
 9         [HttpPost]
10         public JsonResult<object> GetJsonValue([FromBody]InputValue para)
11         {
12             using (IDbConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString))
13             {
14                 cn.Open();
15                 var ret = SqlMapper.Query(cn, "select * from AbpRoles where Id = @id", new { Id = para.Id });
16                 return Json<object>(ret);
17             }
18         }
19 
20 
21         /// <summary>
22         /// 传入参数
23         /// </summary>
24         public class InputValue
25         {
26             /// <summary>
27             /// 主键
28             /// </summary>
29             public int Id { get; set; }
30             /// <summary>
31             /// 名称
32             /// </summary>
33             public string Name { get; set; }
34         }
35     }
View Code

 

2、首先要配置项目可以生成XML说明文档,右击你的项目->生成->输出->勾上 XML文档文件 然后把这个文件名放在下面的代码里.

3、然后 在Areas/HelpPage/App_Start/HelpPageConfig.cs 文件中目前应该是第62行. 增加下面的代码

config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/bin/MvcWebApi01.xml")));

4、安装Swagger

Install-Package Swashbuckle -Version 5.6.0

5、添加导航链接

在_Layout.cshtml文件中添加代码,测试api地址为 http://yourserver/swagger
<li>@Html.ActionLink("Swagger Help", "", "Swagger", new { area = "" }, null)</li>
 
6、修改SwaggerConfig.cs文件
 安装完成后,在文件夹App_Start自动生成一个配置文件 swagger.config。这里可以做多版本控制,定义扩展功能,自定义显示ui的样式脚本,可以配置过滤、权限等。
    string path = string.Format("{0}/bin/MvcWebApi01.xml", System.AppDomain.CurrentDomain.BaseDirectory);
                        c.IncludeXmlComments(path);

 

7、在线测试WebApi,文档注释会自动显示

8、下载NSwagStudio,https://github.com/RSuter/NSwag

9、输入swagger地址,http://localhost/MvcWebApi01/swagger/docs/v1,点击生成即可自动生成ts、c# client 、c# web api controler三种类型的调用客户端

 

 下面为生成的代码地址

   1 //----------------------
   2 // <auto-generated>
   3 //     Generated using the NSwag toolchain v11.17.21.0 (NJsonSchema v9.10.63.0 (Newtonsoft.Json v9.0.0.0)) (http://NSwag.org)
   4 // </auto-generated>
   5 //----------------------
   6 
   7 namespace MyNamespace
   8 {
   9 #pragma warning disable // Disable all warnings
  10 
  11     [System.CodeDom.Compiler.GeneratedCode("NSwag", "11.17.21.0 (NJsonSchema v9.10.63.0 (Newtonsoft.Json v9.0.0.0))")]
  12     public partial class ValuesClient
  13     {
  14         private string _baseUrl = "http://localhost/MvcWebApi01";
  15         private System.Lazy<Newtonsoft.Json.JsonSerializerSettings> _settings;
  16 
  17         public ValuesClient(string baseUrl)
  18         {
  19             _baseUrl = baseUrl;
  20             _settings = new System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(() =>
  21             {
  22                 var settings = new Newtonsoft.Json.JsonSerializerSettings();
  23                 UpdateJsonSerializerSettings(settings);
  24                 return settings;
  25             });
  26         }
  27 
  28         public string BaseUrl
  29         {
  30             get { return _baseUrl; }
  31             set { _baseUrl = value; }
  32         }
  33 
  34         protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _settings.Value; } }
  35 
  36         partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings);
  37         partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url);
  38         partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder);
  39         partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response);
  40 
  41         /// <returns>OK</returns>
  42         /// <exception cref="SwaggerException">A server side error occurred.</exception>
  43         public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<string>> GetAllAsync()
  44         {
  45             return GetAllAsync(System.Threading.CancellationToken.None);
  46         }
  47 
  48         /// <returns>OK</returns>
  49         /// <exception cref="SwaggerException">A server side error occurred.</exception>
  50         /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
  51         public async System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<string>> GetAllAsync(System.Threading.CancellationToken cancellationToken)
  52         {
  53             var urlBuilder_ = new System.Text.StringBuilder();
  54             urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Values/Get");
  55 
  56             var client_ = new System.Net.Http.HttpClient();
  57             try
  58             {
  59                 using (var request_ = new System.Net.Http.HttpRequestMessage())
  60                 {
  61                     request_.Method = new System.Net.Http.HttpMethod("GET");
  62                     request_.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
  63 
  64                     PrepareRequest(client_, request_, urlBuilder_);
  65                     var url_ = urlBuilder_.ToString();
  66                     request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
  67                     PrepareRequest(client_, request_, url_);
  68 
  69                     var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
  70                     try
  71                     {
  72                         var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
  73                         if (response_.Content != null && response_.Content.Headers != null)
  74                         {
  75                             foreach (var item_ in response_.Content.Headers)
  76                                 headers_[item_.Key] = item_.Value;
  77                         }
  78 
  79                         ProcessResponse(client_, response_);
  80 
  81                         var status_ = ((int)response_.StatusCode).ToString();
  82                         if (status_ == "200")
  83                         {
  84                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
  85                             var result_ = default(System.Collections.ObjectModel.ObservableCollection<string>);
  86                             try
  87                             {
  88                                 result_ = Newtonsoft.Json.JsonConvert.DeserializeObject<System.Collections.ObjectModel.ObservableCollection<string>>(responseData_, _settings.Value);
  89                                 return result_;
  90                             }
  91                             catch (System.Exception exception_)
  92                             {
  93                                 throw new SwaggerException("Could not deserialize the response body.", (int)response_.StatusCode, responseData_, headers_, exception_);
  94                             }
  95                         }
  96                         else
  97                         if (status_ != "200" && status_ != "204")
  98                         {
  99                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 100                             throw new SwaggerException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null);
 101                         }
 102 
 103                         return default(System.Collections.ObjectModel.ObservableCollection<string>);
 104                     }
 105                     finally
 106                     {
 107                         if (response_ != null)
 108                             response_.Dispose();
 109                     }
 110                 }
 111             }
 112             finally
 113             {
 114                 if (client_ != null)
 115                     client_.Dispose();
 116             }
 117         }
 118 
 119         /// <returns>OK</returns>
 120         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 121         public System.Threading.Tasks.Task<string> GetAsync(int id)
 122         {
 123             return GetAsync(id, System.Threading.CancellationToken.None);
 124         }
 125 
 126         /// <returns>OK</returns>
 127         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 128         /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
 129         public async System.Threading.Tasks.Task<string> GetAsync(int id, System.Threading.CancellationToken cancellationToken)
 130         {
 131             if (id == null)
 132                 throw new System.ArgumentNullException("id");
 133 
 134             var urlBuilder_ = new System.Text.StringBuilder();
 135             urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Values/Get/{id}");
 136             urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture)));
 137 
 138             var client_ = new System.Net.Http.HttpClient();
 139             try
 140             {
 141                 using (var request_ = new System.Net.Http.HttpRequestMessage())
 142                 {
 143                     request_.Method = new System.Net.Http.HttpMethod("GET");
 144                     request_.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
 145 
 146                     PrepareRequest(client_, request_, urlBuilder_);
 147                     var url_ = urlBuilder_.ToString();
 148                     request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
 149                     PrepareRequest(client_, request_, url_);
 150 
 151                     var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
 152                     try
 153                     {
 154                         var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
 155                         if (response_.Content != null && response_.Content.Headers != null)
 156                         {
 157                             foreach (var item_ in response_.Content.Headers)
 158                                 headers_[item_.Key] = item_.Value;
 159                         }
 160 
 161                         ProcessResponse(client_, response_);
 162 
 163                         var status_ = ((int)response_.StatusCode).ToString();
 164                         if (status_ == "200")
 165                         {
 166                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 167                             var result_ = default(string);
 168                             try
 169                             {
 170                                 result_ = Newtonsoft.Json.JsonConvert.DeserializeObject<string>(responseData_, _settings.Value);
 171                                 return result_;
 172                             }
 173                             catch (System.Exception exception_)
 174                             {
 175                                 throw new SwaggerException("Could not deserialize the response body.", (int)response_.StatusCode, responseData_, headers_, exception_);
 176                             }
 177                         }
 178                         else
 179                         if (status_ != "200" && status_ != "204")
 180                         {
 181                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 182                             throw new SwaggerException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null);
 183                         }
 184 
 185                         return default(string);
 186                     }
 187                     finally
 188                     {
 189                         if (response_ != null)
 190                             response_.Dispose();
 191                     }
 192                 }
 193             }
 194             finally
 195             {
 196                 if (client_ != null)
 197                     client_.Dispose();
 198             }
 199         }
 200 
 201         /// <returns>No Content</returns>
 202         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 203         public System.Threading.Tasks.Task PostAsync(string value)
 204         {
 205             return PostAsync(value, System.Threading.CancellationToken.None);
 206         }
 207 
 208         /// <returns>No Content</returns>
 209         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 210         /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
 211         public async System.Threading.Tasks.Task PostAsync(string value, System.Threading.CancellationToken cancellationToken)
 212         {
 213             var urlBuilder_ = new System.Text.StringBuilder();
 214             urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Values/Post");
 215 
 216             var client_ = new System.Net.Http.HttpClient();
 217             try
 218             {
 219                 using (var request_ = new System.Net.Http.HttpRequestMessage())
 220                 {
 221                     var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(value, _settings.Value));
 222                     content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
 223                     request_.Content = content_;
 224                     request_.Method = new System.Net.Http.HttpMethod("POST");
 225 
 226                     PrepareRequest(client_, request_, urlBuilder_);
 227                     var url_ = urlBuilder_.ToString();
 228                     request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
 229                     PrepareRequest(client_, request_, url_);
 230 
 231                     var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
 232                     try
 233                     {
 234                         var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
 235                         if (response_.Content != null && response_.Content.Headers != null)
 236                         {
 237                             foreach (var item_ in response_.Content.Headers)
 238                                 headers_[item_.Key] = item_.Value;
 239                         }
 240 
 241                         ProcessResponse(client_, response_);
 242 
 243                         var status_ = ((int)response_.StatusCode).ToString();
 244                         if (status_ == "204")
 245                         {
 246                             return;
 247                         }
 248                         else
 249                         if (status_ != "200" && status_ != "204")
 250                         {
 251                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 252                             throw new SwaggerException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null);
 253                         }
 254                     }
 255                     finally
 256                     {
 257                         if (response_ != null)
 258                             response_.Dispose();
 259                     }
 260                 }
 261             }
 262             finally
 263             {
 264                 if (client_ != null)
 265                     client_.Dispose();
 266             }
 267         }
 268 
 269         /// <returns>No Content</returns>
 270         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 271         public System.Threading.Tasks.Task PutAsync(int id, string value)
 272         {
 273             return PutAsync(id, value, System.Threading.CancellationToken.None);
 274         }
 275 
 276         /// <returns>No Content</returns>
 277         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 278         /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
 279         public async System.Threading.Tasks.Task PutAsync(int id, string value, System.Threading.CancellationToken cancellationToken)
 280         {
 281             if (id == null)
 282                 throw new System.ArgumentNullException("id");
 283 
 284             var urlBuilder_ = new System.Text.StringBuilder();
 285             urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Values/Put/{id}");
 286             urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture)));
 287 
 288             var client_ = new System.Net.Http.HttpClient();
 289             try
 290             {
 291                 using (var request_ = new System.Net.Http.HttpRequestMessage())
 292                 {
 293                     var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(value, _settings.Value));
 294                     content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
 295                     request_.Content = content_;
 296                     request_.Method = new System.Net.Http.HttpMethod("PUT");
 297 
 298                     PrepareRequest(client_, request_, urlBuilder_);
 299                     var url_ = urlBuilder_.ToString();
 300                     request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
 301                     PrepareRequest(client_, request_, url_);
 302 
 303                     var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
 304                     try
 305                     {
 306                         var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
 307                         if (response_.Content != null && response_.Content.Headers != null)
 308                         {
 309                             foreach (var item_ in response_.Content.Headers)
 310                                 headers_[item_.Key] = item_.Value;
 311                         }
 312 
 313                         ProcessResponse(client_, response_);
 314 
 315                         var status_ = ((int)response_.StatusCode).ToString();
 316                         if (status_ == "204")
 317                         {
 318                             return;
 319                         }
 320                         else
 321                         if (status_ != "200" && status_ != "204")
 322                         {
 323                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 324                             throw new SwaggerException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null);
 325                         }
 326                     }
 327                     finally
 328                     {
 329                         if (response_ != null)
 330                             response_.Dispose();
 331                     }
 332                 }
 333             }
 334             finally
 335             {
 336                 if (client_ != null)
 337                     client_.Dispose();
 338             }
 339         }
 340 
 341         /// <returns>No Content</returns>
 342         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 343         public System.Threading.Tasks.Task DeleteAsync(int id)
 344         {
 345             return DeleteAsync(id, System.Threading.CancellationToken.None);
 346         }
 347 
 348         /// <returns>No Content</returns>
 349         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 350         /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
 351         public async System.Threading.Tasks.Task DeleteAsync(int id, System.Threading.CancellationToken cancellationToken)
 352         {
 353             if (id == null)
 354                 throw new System.ArgumentNullException("id");
 355 
 356             var urlBuilder_ = new System.Text.StringBuilder();
 357             urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Values/Delete/{id}");
 358             urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture)));
 359 
 360             var client_ = new System.Net.Http.HttpClient();
 361             try
 362             {
 363                 using (var request_ = new System.Net.Http.HttpRequestMessage())
 364                 {
 365                     request_.Method = new System.Net.Http.HttpMethod("DELETE");
 366 
 367                     PrepareRequest(client_, request_, urlBuilder_);
 368                     var url_ = urlBuilder_.ToString();
 369                     request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
 370                     PrepareRequest(client_, request_, url_);
 371 
 372                     var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
 373                     try
 374                     {
 375                         var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
 376                         if (response_.Content != null && response_.Content.Headers != null)
 377                         {
 378                             foreach (var item_ in response_.Content.Headers)
 379                                 headers_[item_.Key] = item_.Value;
 380                         }
 381 
 382                         ProcessResponse(client_, response_);
 383 
 384                         var status_ = ((int)response_.StatusCode).ToString();
 385                         if (status_ == "204")
 386                         {
 387                             return;
 388                         }
 389                         else
 390                         if (status_ != "200" && status_ != "204")
 391                         {
 392                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 393                             throw new SwaggerException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null);
 394                         }
 395                     }
 396                     finally
 397                     {
 398                         if (response_ != null)
 399                             response_.Dispose();
 400                     }
 401                 }
 402             }
 403             finally
 404             {
 405                 if (client_ != null)
 406                     client_.Dispose();
 407             }
 408         }
 409 
 410         /// <summary>这是一个Post测试</summary>
 411         /// <returns>OK</returns>
 412         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 413         public System.Threading.Tasks.Task<object> GetJsonValueAsync(InputValue para)
 414         {
 415             return GetJsonValueAsync(para, System.Threading.CancellationToken.None);
 416         }
 417 
 418         /// <summary>这是一个Post测试</summary>
 419         /// <returns>OK</returns>
 420         /// <exception cref="SwaggerException">A server side error occurred.</exception>
 421         /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
 422         public async System.Threading.Tasks.Task<object> GetJsonValueAsync(InputValue para, System.Threading.CancellationToken cancellationToken)
 423         {
 424             var urlBuilder_ = new System.Text.StringBuilder();
 425             urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Values/GetJsonValue");
 426 
 427             var client_ = new System.Net.Http.HttpClient();
 428             try
 429             {
 430                 using (var request_ = new System.Net.Http.HttpRequestMessage())
 431                 {
 432                     var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(para, _settings.Value));
 433                     content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
 434                     request_.Content = content_;
 435                     request_.Method = new System.Net.Http.HttpMethod("POST");
 436                     request_.Headers.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
 437 
 438                     PrepareRequest(client_, request_, urlBuilder_);
 439                     var url_ = urlBuilder_.ToString();
 440                     request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
 441                     PrepareRequest(client_, request_, url_);
 442 
 443                     var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
 444                     try
 445                     {
 446                         var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
 447                         if (response_.Content != null && response_.Content.Headers != null)
 448                         {
 449                             foreach (var item_ in response_.Content.Headers)
 450                                 headers_[item_.Key] = item_.Value;
 451                         }
 452 
 453                         ProcessResponse(client_, response_);
 454 
 455                         var status_ = ((int)response_.StatusCode).ToString();
 456                         if (status_ == "200")
 457                         {
 458                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 459                             var result_ = default(object);
 460                             try
 461                             {
 462                                 result_ =  Newtonsoft.Json.JsonConvert.DeserializeObject<object>(responseData_, _settings.Value);
 463                                 return result_;
 464                             }
 465                             catch (System.Exception exception_)
 466                             {
 467                                 throw new SwaggerException("Could not deserialize the response body.", (int)response_.StatusCode, responseData_, headers_, exception_);
 468                             }
 469                         }
 470                         else
 471                         if (status_ != "200" && status_ != "204")
 472                         {
 473                             var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
 474                             throw new SwaggerException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null);
 475                         }
 476 
 477                         return default(object);
 478                     }
 479                     finally
 480                     {
 481                         if (response_ != null)
 482                             response_.Dispose();
 483                     }
 484                 }
 485             }
 486             finally
 487             {
 488                 if (client_ != null)
 489                     client_.Dispose();
 490             }
 491         }
 492 
 493         private string ConvertToString(object value, System.Globalization.CultureInfo cultureInfo)
 494         {
 495             if (value is System.Enum)
 496             {
 497                 string name = System.Enum.GetName(value.GetType(), value);
 498                 if (name != null)
 499                 {
 500                     var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name);
 501                     if (field != null)
 502                     {
 503                         var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute))
 504                             as System.Runtime.Serialization.EnumMemberAttribute;
 505                         if (attribute != null)
 506                         {
 507                             return attribute.Value;
 508                         }
 509                     }
 510                 }
 511             }
 512             else if (value is byte[])
 513             {
 514                 return System.Convert.ToBase64String((byte[])value);
 515             }
 516             else if (value != null && value.GetType().IsArray)
 517             {
 518                 var array = System.Linq.Enumerable.OfType<object>((System.Array)value);
 519                 return string.Join(",", System.Linq.Enumerable.Select(array, o => ConvertToString(o, cultureInfo)));
 520             }
 521 
 522             return System.Convert.ToString(value, cultureInfo);
 523         }
 524     }
 525 
 526 
 527 
 528     /// <summary>传入参数</summary>
 529     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
 530     public partial class InputValue : System.ComponentModel.INotifyPropertyChanged
 531     {
 532         private int? _id;
 533         private string _name;
 534 
 535         /// <summary>主键</summary>
 536         [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 537         public int? Id
 538         {
 539             get { return _id; }
 540             set
 541             {
 542                 if (_id != value)
 543                 {
 544                     _id = value;
 545                     RaisePropertyChanged();
 546                 }
 547             }
 548         }
 549 
 550         /// <summary>名称</summary>
 551         [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 552         public string Name
 553         {
 554             get { return _name; }
 555             set
 556             {
 557                 if (_name != value)
 558                 {
 559                     _name = value;
 560                     RaisePropertyChanged();
 561                 }
 562             }
 563         }
 564 
 565         public string ToJson()
 566         {
 567             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
 568         }
 569 
 570         public static InputValue FromJson(string data)
 571         {
 572             return Newtonsoft.Json.JsonConvert.DeserializeObject<InputValue>(data);
 573         }
 574 
 575         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
 576 
 577         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
 578         {
 579             var handler = PropertyChanged;
 580             if (handler != null)
 581                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
 582         }
 583 
 584     }
 585 
 586     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
 587     public partial class JsonResultOfObject : System.ComponentModel.INotifyPropertyChanged
 588     {
 589         private object _content;
 590         private JsonSerializerSettings _serializerSettings;
 591         private Encoding _encoding;
 592         private object _request;
 593 
 594         [Newtonsoft.Json.JsonProperty("Content", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 595         public object Content
 596         {
 597             get { return _content; }
 598             set
 599             {
 600                 if (_content != value)
 601                 {
 602                     _content = value;
 603                     RaisePropertyChanged();
 604                 }
 605             }
 606         }
 607 
 608         [Newtonsoft.Json.JsonProperty("SerializerSettings", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 609         public JsonSerializerSettings SerializerSettings
 610         {
 611             get { return _serializerSettings; }
 612             set
 613             {
 614                 if (_serializerSettings != value)
 615                 {
 616                     _serializerSettings = value;
 617                     RaisePropertyChanged();
 618                 }
 619             }
 620         }
 621 
 622         [Newtonsoft.Json.JsonProperty("Encoding", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 623         public Encoding Encoding
 624         {
 625             get { return _encoding; }
 626             set
 627             {
 628                 if (_encoding != value)
 629                 {
 630                     _encoding = value;
 631                     RaisePropertyChanged();
 632                 }
 633             }
 634         }
 635 
 636         [Newtonsoft.Json.JsonProperty("Request", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 637         public object Request
 638         {
 639             get { return _request; }
 640             set
 641             {
 642                 if (_request != value)
 643                 {
 644                     _request = value;
 645                     RaisePropertyChanged();
 646                 }
 647             }
 648         }
 649 
 650         public string ToJson()
 651         {
 652             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
 653         }
 654 
 655         public static JsonResultOfObject FromJson(string data)
 656         {
 657             return Newtonsoft.Json.JsonConvert.DeserializeObject<JsonResultOfObject>(data);
 658         }
 659 
 660         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
 661 
 662         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
 663         {
 664             var handler = PropertyChanged;
 665             if (handler != null)
 666                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
 667         }
 668 
 669     }
 670 
 671     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
 672     public partial class JsonSerializerSettings : System.ComponentModel.INotifyPropertyChanged
 673     {
 674         private JsonSerializerSettingsReferenceLoopHandling? _referenceLoopHandling;
 675         private JsonSerializerSettingsMissingMemberHandling? _missingMemberHandling;
 676         private JsonSerializerSettingsObjectCreationHandling? _objectCreationHandling;
 677         private JsonSerializerSettingsNullValueHandling? _nullValueHandling;
 678         private JsonSerializerSettingsDefaultValueHandling? _defaultValueHandling;
 679         private System.Collections.ObjectModel.ObservableCollection<JsonConverter> _converters;
 680         private JsonSerializerSettingsPreserveReferencesHandling? _preserveReferencesHandling;
 681         private JsonSerializerSettingsTypeNameHandling? _typeNameHandling;
 682         private JsonSerializerSettingsMetadataPropertyHandling? _metadataPropertyHandling;
 683         private JsonSerializerSettingsTypeNameAssemblyFormat? _typeNameAssemblyFormat;
 684         private JsonSerializerSettingsTypeNameAssemblyFormatHandling? _typeNameAssemblyFormatHandling;
 685         private JsonSerializerSettingsConstructorHandling? _constructorHandling;
 686         private object _contractResolver;
 687         private object _equalityComparer;
 688         private object _referenceResolver;
 689         private FuncOfIReferenceResolver _referenceResolverProvider;
 690         private ITraceWriter _traceWriter;
 691         private object _binder;
 692         private object _serializationBinder;
 693         private object _error;
 694         private StreamingContext _context;
 695         private string _dateFormatString;
 696         private int? _maxDepth;
 697         private JsonSerializerSettingsFormatting? _formatting;
 698         private JsonSerializerSettingsDateFormatHandling? _dateFormatHandling;
 699         private JsonSerializerSettingsDateTimeZoneHandling? _dateTimeZoneHandling;
 700         private JsonSerializerSettingsDateParseHandling? _dateParseHandling;
 701         private JsonSerializerSettingsFloatFormatHandling? _floatFormatHandling;
 702         private JsonSerializerSettingsFloatParseHandling? _floatParseHandling;
 703         private JsonSerializerSettingsStringEscapeHandling? _stringEscapeHandling;
 704         private string _culture;
 705         private bool? _checkAdditionalContent;
 706 
 707         [Newtonsoft.Json.JsonProperty("ReferenceLoopHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 708         public JsonSerializerSettingsReferenceLoopHandling? ReferenceLoopHandling
 709         {
 710             get { return _referenceLoopHandling; }
 711             set
 712             {
 713                 if (_referenceLoopHandling != value)
 714                 {
 715                     _referenceLoopHandling = value;
 716                     RaisePropertyChanged();
 717                 }
 718             }
 719         }
 720 
 721         [Newtonsoft.Json.JsonProperty("MissingMemberHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 722         public JsonSerializerSettingsMissingMemberHandling? MissingMemberHandling
 723         {
 724             get { return _missingMemberHandling; }
 725             set
 726             {
 727                 if (_missingMemberHandling != value)
 728                 {
 729                     _missingMemberHandling = value;
 730                     RaisePropertyChanged();
 731                 }
 732             }
 733         }
 734 
 735         [Newtonsoft.Json.JsonProperty("ObjectCreationHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 736         public JsonSerializerSettingsObjectCreationHandling? ObjectCreationHandling
 737         {
 738             get { return _objectCreationHandling; }
 739             set
 740             {
 741                 if (_objectCreationHandling != value)
 742                 {
 743                     _objectCreationHandling = value;
 744                     RaisePropertyChanged();
 745                 }
 746             }
 747         }
 748 
 749         [Newtonsoft.Json.JsonProperty("NullValueHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 750         public JsonSerializerSettingsNullValueHandling? NullValueHandling
 751         {
 752             get { return _nullValueHandling; }
 753             set
 754             {
 755                 if (_nullValueHandling != value)
 756                 {
 757                     _nullValueHandling = value;
 758                     RaisePropertyChanged();
 759                 }
 760             }
 761         }
 762 
 763         [Newtonsoft.Json.JsonProperty("DefaultValueHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 764         public JsonSerializerSettingsDefaultValueHandling? DefaultValueHandling
 765         {
 766             get { return _defaultValueHandling; }
 767             set
 768             {
 769                 if (_defaultValueHandling != value)
 770                 {
 771                     _defaultValueHandling = value;
 772                     RaisePropertyChanged();
 773                 }
 774             }
 775         }
 776 
 777         [Newtonsoft.Json.JsonProperty("Converters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 778         public System.Collections.ObjectModel.ObservableCollection<JsonConverter> Converters
 779         {
 780             get { return _converters; }
 781             set
 782             {
 783                 if (_converters != value)
 784                 {
 785                     _converters = value;
 786                     RaisePropertyChanged();
 787                 }
 788             }
 789         }
 790 
 791         [Newtonsoft.Json.JsonProperty("PreserveReferencesHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 792         public JsonSerializerSettingsPreserveReferencesHandling? PreserveReferencesHandling
 793         {
 794             get { return _preserveReferencesHandling; }
 795             set
 796             {
 797                 if (_preserveReferencesHandling != value)
 798                 {
 799                     _preserveReferencesHandling = value;
 800                     RaisePropertyChanged();
 801                 }
 802             }
 803         }
 804 
 805         [Newtonsoft.Json.JsonProperty("TypeNameHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 806         public JsonSerializerSettingsTypeNameHandling? TypeNameHandling
 807         {
 808             get { return _typeNameHandling; }
 809             set
 810             {
 811                 if (_typeNameHandling != value)
 812                 {
 813                     _typeNameHandling = value;
 814                     RaisePropertyChanged();
 815                 }
 816             }
 817         }
 818 
 819         [Newtonsoft.Json.JsonProperty("MetadataPropertyHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 820         public JsonSerializerSettingsMetadataPropertyHandling? MetadataPropertyHandling
 821         {
 822             get { return _metadataPropertyHandling; }
 823             set
 824             {
 825                 if (_metadataPropertyHandling != value)
 826                 {
 827                     _metadataPropertyHandling = value;
 828                     RaisePropertyChanged();
 829                 }
 830             }
 831         }
 832 
 833         [Newtonsoft.Json.JsonProperty("TypeNameAssemblyFormat", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 834         public JsonSerializerSettingsTypeNameAssemblyFormat? TypeNameAssemblyFormat
 835         {
 836             get { return _typeNameAssemblyFormat; }
 837             set
 838             {
 839                 if (_typeNameAssemblyFormat != value)
 840                 {
 841                     _typeNameAssemblyFormat = value;
 842                     RaisePropertyChanged();
 843                 }
 844             }
 845         }
 846 
 847         [Newtonsoft.Json.JsonProperty("TypeNameAssemblyFormatHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 848         public JsonSerializerSettingsTypeNameAssemblyFormatHandling? TypeNameAssemblyFormatHandling
 849         {
 850             get { return _typeNameAssemblyFormatHandling; }
 851             set
 852             {
 853                 if (_typeNameAssemblyFormatHandling != value)
 854                 {
 855                     _typeNameAssemblyFormatHandling = value;
 856                     RaisePropertyChanged();
 857                 }
 858             }
 859         }
 860 
 861         [Newtonsoft.Json.JsonProperty("ConstructorHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 862         public JsonSerializerSettingsConstructorHandling? ConstructorHandling
 863         {
 864             get { return _constructorHandling; }
 865             set
 866             {
 867                 if (_constructorHandling != value)
 868                 {
 869                     _constructorHandling = value;
 870                     RaisePropertyChanged();
 871                 }
 872             }
 873         }
 874 
 875         [Newtonsoft.Json.JsonProperty("ContractResolver", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 876         public object ContractResolver
 877         {
 878             get { return _contractResolver; }
 879             set
 880             {
 881                 if (_contractResolver != value)
 882                 {
 883                     _contractResolver = value;
 884                     RaisePropertyChanged();
 885                 }
 886             }
 887         }
 888 
 889         [Newtonsoft.Json.JsonProperty("EqualityComparer", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 890         public object EqualityComparer
 891         {
 892             get { return _equalityComparer; }
 893             set
 894             {
 895                 if (_equalityComparer != value)
 896                 {
 897                     _equalityComparer = value;
 898                     RaisePropertyChanged();
 899                 }
 900             }
 901         }
 902 
 903         [Newtonsoft.Json.JsonProperty("ReferenceResolver", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 904         public object ReferenceResolver
 905         {
 906             get { return _referenceResolver; }
 907             set
 908             {
 909                 if (_referenceResolver != value)
 910                 {
 911                     _referenceResolver = value;
 912                     RaisePropertyChanged();
 913                 }
 914             }
 915         }
 916 
 917         [Newtonsoft.Json.JsonProperty("ReferenceResolverProvider", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 918         public FuncOfIReferenceResolver ReferenceResolverProvider
 919         {
 920             get { return _referenceResolverProvider; }
 921             set
 922             {
 923                 if (_referenceResolverProvider != value)
 924                 {
 925                     _referenceResolverProvider = value;
 926                     RaisePropertyChanged();
 927                 }
 928             }
 929         }
 930 
 931         [Newtonsoft.Json.JsonProperty("TraceWriter", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 932         public ITraceWriter TraceWriter
 933         {
 934             get { return _traceWriter; }
 935             set
 936             {
 937                 if (_traceWriter != value)
 938                 {
 939                     _traceWriter = value;
 940                     RaisePropertyChanged();
 941                 }
 942             }
 943         }
 944 
 945         [Newtonsoft.Json.JsonProperty("Binder", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 946         public object Binder
 947         {
 948             get { return _binder; }
 949             set
 950             {
 951                 if (_binder != value)
 952                 {
 953                     _binder = value;
 954                     RaisePropertyChanged();
 955                 }
 956             }
 957         }
 958 
 959         [Newtonsoft.Json.JsonProperty("SerializationBinder", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 960         public object SerializationBinder
 961         {
 962             get { return _serializationBinder; }
 963             set
 964             {
 965                 if (_serializationBinder != value)
 966                 {
 967                     _serializationBinder = value;
 968                     RaisePropertyChanged();
 969                 }
 970             }
 971         }
 972 
 973         [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 974         public object Error
 975         {
 976             get { return _error; }
 977             set
 978             {
 979                 if (_error != value)
 980                 {
 981                     _error = value;
 982                     RaisePropertyChanged();
 983                 }
 984             }
 985         }
 986 
 987         [Newtonsoft.Json.JsonProperty("Context", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
 988         public StreamingContext Context
 989         {
 990             get { return _context; }
 991             set
 992             {
 993                 if (_context != value)
 994                 {
 995                     _context = value;
 996                     RaisePropertyChanged();
 997                 }
 998             }
 999         }
1000 
1001         [Newtonsoft.Json.JsonProperty("DateFormatString", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1002         public string DateFormatString
1003         {
1004             get { return _dateFormatString; }
1005             set
1006             {
1007                 if (_dateFormatString != value)
1008                 {
1009                     _dateFormatString = value;
1010                     RaisePropertyChanged();
1011                 }
1012             }
1013         }
1014 
1015         [Newtonsoft.Json.JsonProperty("MaxDepth", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1016         public int? MaxDepth
1017         {
1018             get { return _maxDepth; }
1019             set
1020             {
1021                 if (_maxDepth != value)
1022                 {
1023                     _maxDepth = value;
1024                     RaisePropertyChanged();
1025                 }
1026             }
1027         }
1028 
1029         [Newtonsoft.Json.JsonProperty("Formatting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1030         public JsonSerializerSettingsFormatting? Formatting
1031         {
1032             get { return _formatting; }
1033             set
1034             {
1035                 if (_formatting != value)
1036                 {
1037                     _formatting = value;
1038                     RaisePropertyChanged();
1039                 }
1040             }
1041         }
1042 
1043         [Newtonsoft.Json.JsonProperty("DateFormatHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1044         public JsonSerializerSettingsDateFormatHandling? DateFormatHandling
1045         {
1046             get { return _dateFormatHandling; }
1047             set
1048             {
1049                 if (_dateFormatHandling != value)
1050                 {
1051                     _dateFormatHandling = value;
1052                     RaisePropertyChanged();
1053                 }
1054             }
1055         }
1056 
1057         [Newtonsoft.Json.JsonProperty("DateTimeZoneHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1058         public JsonSerializerSettingsDateTimeZoneHandling? DateTimeZoneHandling
1059         {
1060             get { return _dateTimeZoneHandling; }
1061             set
1062             {
1063                 if (_dateTimeZoneHandling != value)
1064                 {
1065                     _dateTimeZoneHandling = value;
1066                     RaisePropertyChanged();
1067                 }
1068             }
1069         }
1070 
1071         [Newtonsoft.Json.JsonProperty("DateParseHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1072         public JsonSerializerSettingsDateParseHandling? DateParseHandling
1073         {
1074             get { return _dateParseHandling; }
1075             set
1076             {
1077                 if (_dateParseHandling != value)
1078                 {
1079                     _dateParseHandling = value;
1080                     RaisePropertyChanged();
1081                 }
1082             }
1083         }
1084 
1085         [Newtonsoft.Json.JsonProperty("FloatFormatHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1086         public JsonSerializerSettingsFloatFormatHandling? FloatFormatHandling
1087         {
1088             get { return _floatFormatHandling; }
1089             set
1090             {
1091                 if (_floatFormatHandling != value)
1092                 {
1093                     _floatFormatHandling = value;
1094                     RaisePropertyChanged();
1095                 }
1096             }
1097         }
1098 
1099         [Newtonsoft.Json.JsonProperty("FloatParseHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1100         public JsonSerializerSettingsFloatParseHandling? FloatParseHandling
1101         {
1102             get { return _floatParseHandling; }
1103             set
1104             {
1105                 if (_floatParseHandling != value)
1106                 {
1107                     _floatParseHandling = value;
1108                     RaisePropertyChanged();
1109                 }
1110             }
1111         }
1112 
1113         [Newtonsoft.Json.JsonProperty("StringEscapeHandling", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1114         public JsonSerializerSettingsStringEscapeHandling? StringEscapeHandling
1115         {
1116             get { return _stringEscapeHandling; }
1117             set
1118             {
1119                 if (_stringEscapeHandling != value)
1120                 {
1121                     _stringEscapeHandling = value;
1122                     RaisePropertyChanged();
1123                 }
1124             }
1125         }
1126 
1127         [Newtonsoft.Json.JsonProperty("Culture", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1128         public string Culture
1129         {
1130             get { return _culture; }
1131             set
1132             {
1133                 if (_culture != value)
1134                 {
1135                     _culture = value;
1136                     RaisePropertyChanged();
1137                 }
1138             }
1139         }
1140 
1141         [Newtonsoft.Json.JsonProperty("CheckAdditionalContent", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1142         public bool? CheckAdditionalContent
1143         {
1144             get { return _checkAdditionalContent; }
1145             set
1146             {
1147                 if (_checkAdditionalContent != value)
1148                 {
1149                     _checkAdditionalContent = value;
1150                     RaisePropertyChanged();
1151                 }
1152             }
1153         }
1154 
1155         public string ToJson()
1156         {
1157             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1158         }
1159 
1160         public static JsonSerializerSettings FromJson(string data)
1161         {
1162             return Newtonsoft.Json.JsonConvert.DeserializeObject<JsonSerializerSettings>(data);
1163         }
1164 
1165         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1166 
1167         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1168         {
1169             var handler = PropertyChanged;
1170             if (handler != null)
1171                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1172         }
1173 
1174     }
1175 
1176     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1177     public partial class Encoding : System.ComponentModel.INotifyPropertyChanged
1178     {
1179         private int? _m_codePage;
1180         private CodePageDataItem _dataItem;
1181         private bool? _m_isReadOnly;
1182         private EncoderFallback _encoderFallback;
1183         private DecoderFallback _decoderFallback;
1184 
1185         [Newtonsoft.Json.JsonProperty("m_codePage", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1186         public int? M_codePage
1187         {
1188             get { return _m_codePage; }
1189             set
1190             {
1191                 if (_m_codePage != value)
1192                 {
1193                     _m_codePage = value;
1194                     RaisePropertyChanged();
1195                 }
1196             }
1197         }
1198 
1199         [Newtonsoft.Json.JsonProperty("dataItem", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1200         public CodePageDataItem DataItem
1201         {
1202             get { return _dataItem; }
1203             set
1204             {
1205                 if (_dataItem != value)
1206                 {
1207                     _dataItem = value;
1208                     RaisePropertyChanged();
1209                 }
1210             }
1211         }
1212 
1213         [Newtonsoft.Json.JsonProperty("m_isReadOnly", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1214         public bool? M_isReadOnly
1215         {
1216             get { return _m_isReadOnly; }
1217             set
1218             {
1219                 if (_m_isReadOnly != value)
1220                 {
1221                     _m_isReadOnly = value;
1222                     RaisePropertyChanged();
1223                 }
1224             }
1225         }
1226 
1227         [Newtonsoft.Json.JsonProperty("encoderFallback", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1228         public EncoderFallback EncoderFallback
1229         {
1230             get { return _encoderFallback; }
1231             set
1232             {
1233                 if (_encoderFallback != value)
1234                 {
1235                     _encoderFallback = value;
1236                     RaisePropertyChanged();
1237                 }
1238             }
1239         }
1240 
1241         [Newtonsoft.Json.JsonProperty("decoderFallback", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1242         public DecoderFallback DecoderFallback
1243         {
1244             get { return _decoderFallback; }
1245             set
1246             {
1247                 if (_decoderFallback != value)
1248                 {
1249                     _decoderFallback = value;
1250                     RaisePropertyChanged();
1251                 }
1252             }
1253         }
1254 
1255         public string ToJson()
1256         {
1257             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1258         }
1259 
1260         public static Encoding FromJson(string data)
1261         {
1262             return Newtonsoft.Json.JsonConvert.DeserializeObject<Encoding>(data);
1263         }
1264 
1265         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1266 
1267         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1268         {
1269             var handler = PropertyChanged;
1270             if (handler != null)
1271                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1272         }
1273 
1274     }
1275 
1276     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1277     public partial class JsonConverter : System.ComponentModel.INotifyPropertyChanged
1278     {
1279         private bool? _canRead;
1280         private bool? _canWrite;
1281 
1282         [Newtonsoft.Json.JsonProperty("CanRead", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1283         public bool? CanRead
1284         {
1285             get { return _canRead; }
1286             set
1287             {
1288                 if (_canRead != value)
1289                 {
1290                     _canRead = value;
1291                     RaisePropertyChanged();
1292                 }
1293             }
1294         }
1295 
1296         [Newtonsoft.Json.JsonProperty("CanWrite", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1297         public bool? CanWrite
1298         {
1299             get { return _canWrite; }
1300             set
1301             {
1302                 if (_canWrite != value)
1303                 {
1304                     _canWrite = value;
1305                     RaisePropertyChanged();
1306                 }
1307             }
1308         }
1309 
1310         public string ToJson()
1311         {
1312             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1313         }
1314 
1315         public static JsonConverter FromJson(string data)
1316         {
1317             return Newtonsoft.Json.JsonConvert.DeserializeObject<JsonConverter>(data);
1318         }
1319 
1320         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1321 
1322         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1323         {
1324             var handler = PropertyChanged;
1325             if (handler != null)
1326                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1327         }
1328 
1329     }
1330 
1331     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1332     public partial class FuncOfIReferenceResolver : System.ComponentModel.INotifyPropertyChanged
1333     {
1334         private object _method;
1335         private object _target;
1336 
1337         [Newtonsoft.Json.JsonProperty("Method", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1338         public object Method
1339         {
1340             get { return _method; }
1341             set
1342             {
1343                 if (_method != value)
1344                 {
1345                     _method = value;
1346                     RaisePropertyChanged();
1347                 }
1348             }
1349         }
1350 
1351         [Newtonsoft.Json.JsonProperty("Target", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1352         public object Target
1353         {
1354             get { return _target; }
1355             set
1356             {
1357                 if (_target != value)
1358                 {
1359                     _target = value;
1360                     RaisePropertyChanged();
1361                 }
1362             }
1363         }
1364 
1365         public string ToJson()
1366         {
1367             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1368         }
1369 
1370         public static FuncOfIReferenceResolver FromJson(string data)
1371         {
1372             return Newtonsoft.Json.JsonConvert.DeserializeObject<FuncOfIReferenceResolver>(data);
1373         }
1374 
1375         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1376 
1377         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1378         {
1379             var handler = PropertyChanged;
1380             if (handler != null)
1381                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1382         }
1383 
1384     }
1385 
1386     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1387     public partial class ITraceWriter : System.ComponentModel.INotifyPropertyChanged
1388     {
1389         private ITraceWriterLevelFilter? _levelFilter;
1390 
1391         [Newtonsoft.Json.JsonProperty("LevelFilter", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1392         public ITraceWriterLevelFilter? LevelFilter
1393         {
1394             get { return _levelFilter; }
1395             set
1396             {
1397                 if (_levelFilter != value)
1398                 {
1399                     _levelFilter = value;
1400                     RaisePropertyChanged();
1401                 }
1402             }
1403         }
1404 
1405         public string ToJson()
1406         {
1407             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1408         }
1409 
1410         public static ITraceWriter FromJson(string data)
1411         {
1412             return Newtonsoft.Json.JsonConvert.DeserializeObject<ITraceWriter>(data);
1413         }
1414 
1415         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1416 
1417         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1418         {
1419             var handler = PropertyChanged;
1420             if (handler != null)
1421                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1422         }
1423 
1424     }
1425 
1426     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1427     public partial class StreamingContext : System.ComponentModel.INotifyPropertyChanged
1428     {
1429         private object _m_additionalContext;
1430         private StreamingContextM_state? _m_state;
1431 
1432         [Newtonsoft.Json.JsonProperty("m_additionalContext", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1433         public object M_additionalContext
1434         {
1435             get { return _m_additionalContext; }
1436             set
1437             {
1438                 if (_m_additionalContext != value)
1439                 {
1440                     _m_additionalContext = value;
1441                     RaisePropertyChanged();
1442                 }
1443             }
1444         }
1445 
1446         [Newtonsoft.Json.JsonProperty("m_state", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1447         public StreamingContextM_state? M_state
1448         {
1449             get { return _m_state; }
1450             set
1451             {
1452                 if (_m_state != value)
1453                 {
1454                     _m_state = value;
1455                     RaisePropertyChanged();
1456                 }
1457             }
1458         }
1459 
1460         public string ToJson()
1461         {
1462             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1463         }
1464 
1465         public static StreamingContext FromJson(string data)
1466         {
1467             return Newtonsoft.Json.JsonConvert.DeserializeObject<StreamingContext>(data);
1468         }
1469 
1470         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1471 
1472         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1473         {
1474             var handler = PropertyChanged;
1475             if (handler != null)
1476                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1477         }
1478 
1479     }
1480 
1481     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1482     public partial class CodePageDataItem : System.ComponentModel.INotifyPropertyChanged
1483     {
1484         private int? _m_dataIndex;
1485         private int? _m_uiFamilyCodePage;
1486         private string _m_webName;
1487         private string _m_headerName;
1488         private string _m_bodyName;
1489         private int? _m_flags;
1490 
1491         [Newtonsoft.Json.JsonProperty("m_dataIndex", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1492         public int? M_dataIndex
1493         {
1494             get { return _m_dataIndex; }
1495             set
1496             {
1497                 if (_m_dataIndex != value)
1498                 {
1499                     _m_dataIndex = value;
1500                     RaisePropertyChanged();
1501                 }
1502             }
1503         }
1504 
1505         [Newtonsoft.Json.JsonProperty("m_uiFamilyCodePage", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1506         public int? M_uiFamilyCodePage
1507         {
1508             get { return _m_uiFamilyCodePage; }
1509             set
1510             {
1511                 if (_m_uiFamilyCodePage != value)
1512                 {
1513                     _m_uiFamilyCodePage = value;
1514                     RaisePropertyChanged();
1515                 }
1516             }
1517         }
1518 
1519         [Newtonsoft.Json.JsonProperty("m_webName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1520         public string M_webName
1521         {
1522             get { return _m_webName; }
1523             set
1524             {
1525                 if (_m_webName != value)
1526                 {
1527                     _m_webName = value;
1528                     RaisePropertyChanged();
1529                 }
1530             }
1531         }
1532 
1533         [Newtonsoft.Json.JsonProperty("m_headerName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1534         public string M_headerName
1535         {
1536             get { return _m_headerName; }
1537             set
1538             {
1539                 if (_m_headerName != value)
1540                 {
1541                     _m_headerName = value;
1542                     RaisePropertyChanged();
1543                 }
1544             }
1545         }
1546 
1547         [Newtonsoft.Json.JsonProperty("m_bodyName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1548         public string M_bodyName
1549         {
1550             get { return _m_bodyName; }
1551             set
1552             {
1553                 if (_m_bodyName != value)
1554                 {
1555                     _m_bodyName = value;
1556                     RaisePropertyChanged();
1557                 }
1558             }
1559         }
1560 
1561         [Newtonsoft.Json.JsonProperty("m_flags", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1562         public int? M_flags
1563         {
1564             get { return _m_flags; }
1565             set
1566             {
1567                 if (_m_flags != value)
1568                 {
1569                     _m_flags = value;
1570                     RaisePropertyChanged();
1571                 }
1572             }
1573         }
1574 
1575         public string ToJson()
1576         {
1577             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1578         }
1579 
1580         public static CodePageDataItem FromJson(string data)
1581         {
1582             return Newtonsoft.Json.JsonConvert.DeserializeObject<CodePageDataItem>(data);
1583         }
1584 
1585         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1586 
1587         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1588         {
1589             var handler = PropertyChanged;
1590             if (handler != null)
1591                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1592         }
1593 
1594     }
1595 
1596     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1597     public partial class EncoderFallback : System.ComponentModel.INotifyPropertyChanged
1598     {
1599         private bool? _bIsMicrosoftBestFitFallback;
1600 
1601         [Newtonsoft.Json.JsonProperty("bIsMicrosoftBestFitFallback", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1602         public bool? BIsMicrosoftBestFitFallback
1603         {
1604             get { return _bIsMicrosoftBestFitFallback; }
1605             set
1606             {
1607                 if (_bIsMicrosoftBestFitFallback != value)
1608                 {
1609                     _bIsMicrosoftBestFitFallback = value;
1610                     RaisePropertyChanged();
1611                 }
1612             }
1613         }
1614 
1615         public string ToJson()
1616         {
1617             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1618         }
1619 
1620         public static EncoderFallback FromJson(string data)
1621         {
1622             return Newtonsoft.Json.JsonConvert.DeserializeObject<EncoderFallback>(data);
1623         }
1624 
1625         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1626 
1627         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1628         {
1629             var handler = PropertyChanged;
1630             if (handler != null)
1631                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1632         }
1633 
1634     }
1635 
1636     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1637     public partial class DecoderFallback : System.ComponentModel.INotifyPropertyChanged
1638     {
1639         private bool? _bIsMicrosoftBestFitFallback;
1640 
1641         [Newtonsoft.Json.JsonProperty("bIsMicrosoftBestFitFallback", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
1642         public bool? BIsMicrosoftBestFitFallback
1643         {
1644             get { return _bIsMicrosoftBestFitFallback; }
1645             set
1646             {
1647                 if (_bIsMicrosoftBestFitFallback != value)
1648                 {
1649                     _bIsMicrosoftBestFitFallback = value;
1650                     RaisePropertyChanged();
1651                 }
1652             }
1653         }
1654 
1655         public string ToJson()
1656         {
1657             return Newtonsoft.Json.JsonConvert.SerializeObject(this);
1658         }
1659 
1660         public static DecoderFallback FromJson(string data)
1661         {
1662             return Newtonsoft.Json.JsonConvert.DeserializeObject<DecoderFallback>(data);
1663         }
1664 
1665         public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
1666 
1667         protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null)
1668         {
1669             var handler = PropertyChanged;
1670             if (handler != null)
1671                 handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
1672         }
1673 
1674     }
1675 
1676     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1677     public enum JsonSerializerSettingsReferenceLoopHandling
1678     {
1679         _0 = 0,
1680 
1681         _1 = 1,
1682 
1683         _2 = 2,
1684 
1685     }
1686 
1687     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1688     public enum JsonSerializerSettingsMissingMemberHandling
1689     {
1690         _0 = 0,
1691 
1692         _1 = 1,
1693 
1694     }
1695 
1696     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1697     public enum JsonSerializerSettingsObjectCreationHandling
1698     {
1699         _0 = 0,
1700 
1701         _1 = 1,
1702 
1703         _2 = 2,
1704 
1705     }
1706 
1707     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1708     public enum JsonSerializerSettingsNullValueHandling
1709     {
1710         _0 = 0,
1711 
1712         _1 = 1,
1713 
1714     }
1715 
1716     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1717     public enum JsonSerializerSettingsDefaultValueHandling
1718     {
1719         _0 = 0,
1720 
1721         _1 = 1,
1722 
1723         _2 = 2,
1724 
1725         _3 = 3,
1726 
1727     }
1728 
1729     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1730     public enum JsonSerializerSettingsPreserveReferencesHandling
1731     {
1732         _0 = 0,
1733 
1734         _1 = 1,
1735 
1736         _2 = 2,
1737 
1738         _3 = 3,
1739 
1740     }
1741 
1742     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1743     public enum JsonSerializerSettingsTypeNameHandling
1744     {
1745         _0 = 0,
1746 
1747         _1 = 1,
1748 
1749         _2 = 2,
1750 
1751         _3 = 3,
1752 
1753         _4 = 4,
1754 
1755     }
1756 
1757     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1758     public enum JsonSerializerSettingsMetadataPropertyHandling
1759     {
1760         _0 = 0,
1761 
1762         _1 = 1,
1763 
1764         _2 = 2,
1765 
1766     }
1767 
1768     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1769     public enum JsonSerializerSettingsTypeNameAssemblyFormat
1770     {
1771         _0 = 0,
1772 
1773         _1 = 1,
1774 
1775     }
1776 
1777     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1778     public enum JsonSerializerSettingsTypeNameAssemblyFormatHandling
1779     {
1780         _0 = 0,
1781 
1782         _1 = 1,
1783 
1784     }
1785 
1786     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1787     public enum JsonSerializerSettingsConstructorHandling
1788     {
1789         _0 = 0,
1790 
1791         _1 = 1,
1792 
1793     }
1794 
1795     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1796     public enum JsonSerializerSettingsFormatting
1797     {
1798         _0 = 0,
1799 
1800         _1 = 1,
1801 
1802     }
1803 
1804     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1805     public enum JsonSerializerSettingsDateFormatHandling
1806     {
1807         _0 = 0,
1808 
1809         _1 = 1,
1810 
1811     }
1812 
1813     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1814     public enum JsonSerializerSettingsDateTimeZoneHandling
1815     {
1816         _0 = 0,
1817 
1818         _1 = 1,
1819 
1820         _2 = 2,
1821 
1822         _3 = 3,
1823 
1824     }
1825 
1826     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1827     public enum JsonSerializerSettingsDateParseHandling
1828     {
1829         _0 = 0,
1830 
1831         _1 = 1,
1832 
1833         _2 = 2,
1834 
1835     }
1836 
1837     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1838     public enum JsonSerializerSettingsFloatFormatHandling
1839     {
1840         _0 = 0,
1841 
1842         _1 = 1,
1843 
1844         _2 = 2,
1845 
1846     }
1847 
1848     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1849     public enum JsonSerializerSettingsFloatParseHandling
1850     {
1851         _0 = 0,
1852 
1853         _1 = 1,
1854 
1855     }
1856 
1857     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1858     public enum JsonSerializerSettingsStringEscapeHandling
1859     {
1860         _0 = 0,
1861 
1862         _1 = 1,
1863 
1864         _2 = 2,
1865 
1866     }
1867 
1868     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1869     public enum ITraceWriterLevelFilter
1870     {
1871         _0 = 0,
1872 
1873         _1 = 1,
1874 
1875         _2 = 2,
1876 
1877         _3 = 3,
1878 
1879         _4 = 4,
1880 
1881     }
1882 
1883     [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "9.10.63.0 (Newtonsoft.Json v9.0.0.0)")]
1884     public enum StreamingContextM_state
1885     {
1886         _1 = 1,
1887 
1888         _2 = 2,
1889 
1890         _4 = 4,
1891 
1892         _8 = 8,
1893 
1894         _16 = 16,
1895 
1896         _32 = 32,
1897 
1898         _64 = 64,
1899 
1900         _128 = 128,
1901 
1902         _255 = 255,
1903 
1904     }
1905 
1906     [System.CodeDom.Compiler.GeneratedCode("NSwag", "11.17.21.0 (NJsonSchema v9.10.63.0 (Newtonsoft.Json v9.0.0.0))")]
1907     public partial class SwaggerException : System.Exception
1908     {
1909         public int StatusCode { get; private set; }
1910 
1911         public string Response { get; private set; }
1912 
1913         public System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; }
1914 
1915         public SwaggerException(string message, int statusCode, string response, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException)
1916             : base(message, innerException)
1917         {
1918             StatusCode = statusCode;
1919             Response = response;
1920             Headers = headers;
1921         }
1922 
1923         public override string ToString()
1924         {
1925             return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString());
1926         }
1927     }
1928 
1929     [System.CodeDom.Compiler.GeneratedCode("NSwag", "11.17.21.0 (NJsonSchema v9.10.63.0 (Newtonsoft.Json v9.0.0.0))")]
1930     public partial class SwaggerException<TResult> : SwaggerException
1931     {
1932         public TResult Result { get; private set; }
1933 
1934         public SwaggerException(string message, int statusCode, string response, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException)
1935             : base(message, statusCode, response, headers, innerException)
1936         {
1937             Result = result;
1938         }
1939     }
1940 
1941 }
ValuesClient

控制台调用示例代码

 static void Main(string[] args)
        {
            var para = new InputValue { Id = 1 };
            ValuesClient vc = new ValuesClient("http://localhost/MvcWebApi01/");
            var ret = vc.GetJsonValueAsync(para).Result;
        }