Transient Fault Handling with Azure database

不想你离开。 提交于 2021-01-27 23:04:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!