Skip to content

Commit

Permalink
Update Client.Class.liquid (#4471)
Browse files Browse the repository at this point in the history
* Update Client.Class.liquid

fix #4466

* Update Client.Class.liquid

---------

Co-authored-by: Rico Suter <[email protected]>
  • Loading branch information
Alireza2125 and RicoSuter authored Aug 15, 2023
1 parent 57f6b27 commit f612076
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NSwag.CodeGeneration.CSharp/Templates/Client.Class.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
{
{% endif -%}
{% if UseRequestAndResponseSerializationSettings -%}
_requestSettings = new System.Lazy<{{ JsonSerializerSettingsType }}>(() => CreateSerializerSettings(true));
_responseSettings = new System.Lazy<{{ JsonSerializerSettingsType }}>(() => CreateSerializerSettings(false));
_requestSettings = new System.Lazy<{{ JsonSerializerSettingsType }}>(() => CreateSerializerSettings(true), true);
_responseSettings = new System.Lazy<{{ JsonSerializerSettingsType }}>(() => CreateSerializerSettings(false), true);
{% else -%}
_settings = new System.Lazy<{{ JsonSerializerSettingsType }}>(CreateSerializerSettings);
_settings = new System.Lazy<{{ JsonSerializerSettingsType }}>(CreateSerializerSettings, true);
{% endif -%}
{% template Client.Class.Constructor %}
}
Expand Down

0 comments on commit f612076

Please sign in to comment.