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

Microsoft.Rest.TransientFaultHandling.ShouldRetryHandler

public sealed delegate ShouldRetryHandler : MulticastDelegate
Defines a callback delegate that will be invoked whenever a retry condition is encountered.
public ShouldRetryHandler(object object, IntPtr method)

public virtual IAsyncResult BeginInvoke(int retryCount, Exception lastException, AsyncCallback callback, object object)

public virtual RetryCondition EndInvoke(IAsyncResult result)

public virtual RetryCondition Invoke(int retryCount, Exception lastException)