A short practical guide on using C# 9 lambda discards with the Polly resilience library. Two code examples are shown: one using lambda discards in a RetryAsync onRetry callback and an HttpClientHandler certificate validation callback, and another using discards in a WaitAndRetry sleepDurationProvider and onRetry delegate to ignore unneeded parameters.

2m read timeFrom nodogmablog.bryanhogan.net
Post cover image