SqlRetryLogicBaseProvider.Retrying Property

Definition

Occurs before applying the calculated delay time and executing the function on a next attempt.

C#
public EventHandler<Microsoft.Data.SqlClient.SqlRetryingEventArgs> Retrying { get; set; }

Property Value

EventHandler with event argument of SqlRetryingEventArgs object can be subscribed.

Remarks

[IMPORTANT!] Don't block execution with a time consuming action when an event occurs. For instance, if you log data to a file, run it in a new thread to avoid blocking the main execution thread.

Applies to

Produk Versi
SqlClient .NET Core 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2