Skip to content

Add new overload for EnableRetryOnFailure that allows to pass in maxRetryCount and maxRetryDelay. #3268

Open
@joseangelyanez

Description

@joseangelyanez

None of the four available overloads allow to pass just the max retry count (int) and max delay (TimeSpan). The closest fit to this, is an overload that accepts (int, TimeSpan, ICollection<string>?) where the last parameter is errorCodesToAdd.

Since the purpose of the parameter errorCodesToAdd is unclear and the use of the backing field seems to be a work in progress per the TODO comment at the bottom of NpgsqlRetryingExecutionStrategy.cs, there should be an overload that ignores the existence of said field.

public virtual NpgsqlDbContextOptionsBuilder EnableRetryOnFailure(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions