Today I found a problem, when the database connection is not available, for example, the network has been disconnected at this moment, the SqlConnection.OpenAsync() in the SqlConnectionFactory will not throw an exception correctly when multiple database connections are made. Even if you add try... catch is also impossible to catch and will eventually cause the entire program to terminate,How can this problem be solved?

@TheCakeMonster
Today I found a problem, when the database connection is not available, for example, the network has been disconnected at this moment, the SqlConnection.OpenAsync() in the SqlConnectionFactory will not throw an exception correctly when multiple database connections are made. Even if you add try... catch is also impossible to catch and will eventually cause the entire program to terminate,How can this problem be solved?
@TheCakeMonster