<PackageReference Include="Polly" Version="4.2.2" />

OrSyntax

public static class OrSyntax
Fluent API for chaining exceptions that will be handled by a Policy.
public static PolicyBuilder Or<TException>(this PolicyBuilder policyBuilder) where TException : Exception

Specifies the type of exception that this policy can handle.

public static PolicyBuilder Or<TException>(this PolicyBuilder policyBuilder, Func<TException, bool> exceptionPredicate) where TException : Exception

Specifies the type of exception that this policy can handle with addition filters on this exception type.