<PackageReference Include="Microsoft.Data.SqlClient" Version="7.1.0-preview1.26124.5" />

Microsoft.Data.SqlClient.SqlRetryingEventArgs

public sealed class SqlRetryingEventArgs : EventArgs
Represents the set of arguments passed to the Retrying event.
public bool Cancel { get; set; }

Gets or sets a value that indicates whether the retry logic should be canceled.

public TimeSpan Delay { get; }

Gets the current waiting time as a TimeSpan object.

public IList<Exception> Exceptions { get; }

Gets the list of exceptions since the first attempt failure.

public int RetryCount { get; }

Retry-attempt-number, after the first exception occurrence.

public SqlRetryingEventArgs(int retryCount, TimeSpan delay, IList<Exception> exceptions)

Initializes a new instance of the SqlRetryingEventArgs class.