File tree Expand file tree Collapse file tree 1 file changed +36
-4
lines changed
src/main/resources/handlebars/csharp Expand file tree Collapse file tree 1 file changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,42 @@ namespace {{packageName}}.Client
241
241
/// </summary>
242
242
public virtual int Timeout
243
243
{
244
- {{#netStandard}}get { if (_apiClient == null) { return _timeout; } else {return (int)ApiClient.RestClient.Timeout.GetValueOrDefault(TimeSpan.FromSeconds(0)).TotalMilliseconds; } }
245
- set { _timeout = value; if (_apiClient != null) { ApiClient.RestClient.Timeout = TimeSpan.FromMilliseconds(_timeout); } }{{/netStandard}}{{^netStandard}}
246
- get { if (_apiClient == null) { return _timeout; } else { return ApiClient.RestClient.Timeout; } }
247
- set { _timeout = value; if (_apiClient != null) {ApiClient.RestClient.Timeout = _timeout;} }{{/netStandard}}
244
+ {{#netStandard}}get
245
+ {
246
+ if (_apiClient == null)
247
+ {
248
+ return _timeout;
249
+ } else
250
+ {
251
+ return (int)ApiClient.RestClient.Timeout.GetValueOrDefault(TimeSpan.FromSeconds(0)).TotalMilliseconds;
252
+ }
253
+ }
254
+ set
255
+ {
256
+ _timeout = value;
257
+ if (_apiClient != null)
258
+ {
259
+ ApiClient.RestClient.Timeout = TimeSpan.FromMilliseconds(_timeout);
260
+ }
261
+ }{{/netStandard}}{{^netStandard}}
262
+ get
263
+ {
264
+ if (_apiClient == null)
265
+ {
266
+ return _timeout;
267
+ } else
268
+ {
269
+ return ApiClient.RestClient.Timeout;
270
+ }
271
+ }
272
+ set
273
+ {
274
+ _timeout = value;
275
+ if (_apiClient != null)
276
+ {
277
+ ApiClient.RestClient.Timeout = _timeout;
278
+ }
279
+ }{{/netStandard}}
248
280
}
249
281
250
282
/// <summary>
You can’t perform that action at this time.
0 commit comments