Skip to content

Commit 9908bb3

Browse files
committed
Updated README.md
1 parent 36d4d3b commit 9908bb3

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,16 @@ StoredProcedureResponse data = client.Exec("test_schema.prj_package.foo",
727727
});
728728
```
729729
The second argument of Exec(...) can be a dictionary that contains every parameters, or an anonymous type object that each property indicate a parameter name-value.
730-
If an array of input parameter sets is passed into the second argument of Exec(...), the return will be an array -- StoredProcedureResponse[].
731-
_All Exec... overloads will use HTTP POST method by default. You can change the default behavior to HTTP GET if need be. (as the comment line in above example code)_
732-
.
730+
If an array of input parameter sets is passed into the second argument of Exec(...), the return will be an array -- StoredProcedureResponse[].
731+
732+
_If you expect a stored procedure would be time-consuming, please set the [HttpClient.Timeout](https://msdn.microsoft.com/en-us/library/system.net.http.httpclient.timeout(v=vs.110).aspx) to a sufficiently long time, such as:_
733+
``` CSharp
734+
client.HttpClient.Timeout = TimeSpan.FromMinutes(10);
735+
```
736+
_All Exec... overloads will use HTTP POST method by default. You can change the default behavior to HTTP GET if need to be:_
737+
``` CSharp
738+
client.HttpMethod = HttpMethod.Get;
739+
```
733740

734741
If you just need the response content stream (E.g. CSV, Excel xlsx or generated text) to be stored as a file or transfer forward to somewhere else on the network, see below example, replacing Exec() by ExecAsStream().
735742
``` CSharp

0 commit comments

Comments
 (0)