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
The idea here is to have a core-level API to set a "database access timeout". Every provider would then use the value set to configure appropriate timeouts in the lower-level APIs that the provider uses. For example, a relational provider would use this to set both command and connection timeouts.
Any call to a more provider-specific API would override anything set here.
This has two advantages:
It avoids confusion caused by multiple, subtly different timeouts--e.g. command verses connection
As a first step into the EF Core source, I'm trying to think about a way to solve this issue. So far, I thought about adding a DbContextOptionsBuilder.SetDatabaseAccessTimeout method, which would set a CoreOptionsExtension value.
Could this be a good start to handle this issue ?
@sputier That sounds reasonable, you can also open a WIP/draft PR if you aren't sure about what needs to be done next. Don't forget to add tests for different providers.
The idea here is to have a core-level API to set a "database access timeout". Every provider would then use the value set to configure appropriate timeouts in the lower-level APIs that the provider uses. For example, a relational provider would use this to set both command and connection timeouts.
Any call to a more provider-specific API would override anything set here.
This has two advantages:
The text was updated successfully, but these errors were encountered: