Skip to content

How to add RetryPolicy for Asp.Net Core app using Linq2Db context #4140

Closed Answered by MaceWindu
CatalinCernea asked this question in Q&A
Discussion options

You must be logged in to vote

We recommend to add it to context configuration using

options.UseRetryPolicy(policyImplementation)

see all configuration methods here: https://github.com/linq2db/linq2db/blob/master/Source/LinqToDB/Extensions/DataOptionsExtensions.cs#L950-L1090

but you can also set it application-wide:

Configuration.RetryPolicy.Factory = ...

and other Configuration.RetryPolicy.* properties https://github.com/linq2db/linq2db/blob/master/Source/LinqToDB/Common/Configuration.cs#L470-L565

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CatalinCernea
Comment options

Answer selected by CatalinCernea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants