SqlRetryLogicBaseProvider.Retrying Property


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

public EventHandler<Microsoft.Data.SqlClient.SqlRetryingEventArgs> Retrying { get; set; }
member this.Retrying : EventHandler<Microsoft.Data.SqlClient.SqlRetryingEventArgs> with get, set
Public Property Retrying As EventHandler(Of SqlRetryingEventArgs)

Property Value


EventHandler with event argument of SqlRetryingEventArgs object can be subscribed.


[IMPORTAMT!] 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