问题
We are using ReliableSqlConnection from Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling to support transient fault handling for Azure database, we are on .NET 4.6.1. The thing is randomly we got exception:
"Internal .Net Framework Data Provider error 6"
when trying to open connection with this class. ReliableSqlConnection does not support async await, but built-in transient fault handling with ConnectRetryInterval and ConnectRetryCount on ADO.NET 4.6.1 only support at connection level, not command level.
Is there any alternative for ReliableSqlConnection in order to supportat command level with async await and avoid the above exception.
We use Elastic Pool on Azure SQL with tier standard.
来源:https://stackoverflow.com/questions/37699649/transient-fault-handling-with-azure-database