Skip to content

Custom IsTransient Error function

Cleve Littlefield edited this page Feb 1, 2016 · 1 revision

We determine which errors are transient with a simple Func<Exception, bool> function, where the Exception input is the exception currently thrown on the current try, and the output is whether it should be treated as transient.

So in our examples we show (exception) => exception is TimeoutException as an example, but that can be any logic specific to your app.

Clone this wiki locally