Skip to content

Commit cbb6884

Browse files
committed
Added new variable that stores a default value of 10 sec for
TimeoutDefault
1 parent f4f6596 commit cbb6884

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CSharpHTTPClient/Client.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public enum Methods
7474
DELETE, GET, PATCH, POST, PUT
7575
}
7676

77+
private int TimeoutDefault = 10;
78+
7779
/// <summary>
7880
/// REST API client.
7981
/// </summary>
@@ -92,7 +94,7 @@ public Client(string host, Dictionary<string,string> requestHeaders = null, stri
9294
}
9395
Version = (version != null) ? version : null;
9496
UrlPath = (urlPath != null) ? urlPath : null;
95-
Timeout = (timeOut != null) ? (TimeSpan)timeOut : TimeSpan.FromSeconds(10);
97+
Timeout = (timeOut != null) ? (TimeSpan)timeOut : TimeSpan.FromSeconds(TimeoutDefault);
9698
}
9799

98100
/// <summary>

0 commit comments

Comments
 (0)