You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_applyTransientFaultHandling is set to false as retry is not null in this method when opening connection asynchronously.
When opening connection with Open(), _applyTransientFaultHandling is set to true as expected.
The text was updated successfully, but these errors were encountered:
Describe the bug
When opening a connection with
SqlConnection.OpenAsync()
, transient fault handling is not enabled.Test with placing breakpoints on below locations:
SqlClient/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs
Line 1859 in a5ad838
SqlClient/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs
Line 1888 in a5ad838
_applyTransientFaultHandling
is set tofalse
asretry
is notnull
in this method when opening connection asynchronously.When opening connection with
Open()
,_applyTransientFaultHandling
is set totrue
as expected.The text was updated successfully, but these errors were encountered: