Replies: 3 comments 1 reply
-
@artworkad did you figure out a way? I'm trying to accomplish the same thing |
Beta Was this translation helpful? Give feedback.
-
I did it this way. In a partial class I implemented
This way I get a fresh Then I can adjust the timeout for specific requests:
|
Beta Was this translation helpful? Give feedback.
-
The NSwag generated methods all get an overload with a CancellationToken parameter...so you could send a different token with a different timeout on each call. Apologies, as I probably misunderstand the question. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How can the timeout be set per request for the c# client generated by nSwag?
To apply a timeout for all requests, I do:
Beta Was this translation helpful? Give feedback.
All reactions