Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overload EnableRetryOnFailure that allows specifying errorCodesToAdd without count / delay #27074

Closed
midgleyc opened this issue Dec 29, 2021 · 0 comments · Fixed by #27135
Labels
area-query area-save-changes closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. community-contribution customer-reported good first issue This issue should be relatively straightforward to fix. type-enhancement
Milestone

Comments

@midgleyc
Copy link

I'd like a way to call SqlServerDbContextOptionsBuilder.EnableRetryOnFailure with errorCodesToAdd without forcing maxRetryCount and maxRetryDelay to be added.

I want to keep the latter two default, so I copied the values from ExecutionStrategy as they're protected and so not visible externally, but it would be nicer if I didn't have to do this and could just specify the errorCodesToAdd property I'm interested in.

Initially reported at npgsql/efcore.pg#2048. There is some discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-query area-save-changes closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. community-contribution customer-reported good first issue This issue should be relatively straightforward to fix. type-enhancement
Projects
None yet
3 participants