File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
fern/products/sdks/guides Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,15 @@ default retry limit when instantiating the client.
6868 )
6969 ```
7070 </CodeBlock >
71+ <CodeBlock title = " C#" >
72+ ``` csharp {3}
73+ using Imdb ;
74+
75+ var client = new ImdbClient (new ClientOptions {
76+ MaxRetries = 1 // overrides the default retry limit to 1
77+ });
78+ ```
79+ </CodeBlock >
7180</CodeBlocks >
7281
7382It's also possible to override the retry limit on a per-request basis.
@@ -103,5 +112,12 @@ It's also possible to override the retry limit on a per-request basis.
103112 )
104113 ```
105114 </CodeBlock >
115+ <CodeBlock title = " C#" >
116+ ``` csharp {2}
117+ var movie = await client .Movie .GetAsync (" tt0111161" , new RequestOptions {
118+ MaxRetries = 3 // overrides the default retry limit to 3
119+ });
120+ ```
121+ </CodeBlock >
106122</CodeBlocks >
107123
You can’t perform that action at this time.
0 commit comments