Skip to content

[V8] ShouldHandle, ShouldRetry etc. predicates should have reasonable defaults #1313

@adsamcik

Description

@adsamcik

Currently when using the new API, it is required to specify ShouldHandle predicate for CircuitBreaker, ShouldRetry predicate for Retry and probably more.

I think it would be beneficial to have some reasonable default predicates so that users don't need to specify it every time. For example I would consider reasonable default to handle all requests that throw exceptions (other than OperationCancelledException).

Also it would be nice to have the defaults for Http scenarios (handling 5xx requests), because these will be common as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8Issues related to the new version 8 of the Polly library.

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions