<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.18" />

Microsoft.Rest.TransientFaultHandling.ShouldRetryHandler

public sealed delegate ShouldRetryHandler : MulticastDelegate
Defines a callback delegate that will be invoked whenever a retry condition is encountered.
namespace Microsoft.Rest.TransientFaultHandling { public delegate RetryCondition ShouldRetryHandler (int retryCount, Exception lastException); }