-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Policy.cs
26 lines (24 loc) · 887 Bytes
/
Policy.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#nullable enable
namespace Polly;
/// <summary>
/// Transient exception handling policies that can be applied to synchronous delegates.
/// </summary>
public abstract partial class Policy : PolicyBase
{
/// <summary>
/// Initializes a new instance of the <see cref="Policy"/> class.
/// </summary>
/// <param name="exceptionPredicates">Predicates indicating which exceptions the policy should handle. </param>
private protected Policy(ExceptionPredicates exceptionPredicates)
: base(exceptionPredicates)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Policy"/> class.
/// </summary>
/// <param name="policyBuilder">A <see cref="PolicyBuilder"/> specifying which exceptions the policy should handle. </param>
protected Policy(PolicyBuilder? policyBuilder = null)
: base(policyBuilder)
{
}
}