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

PolicyBase

public abstract class PolicyBase
Implements elements common to both non-generic and generic policies, and sync and async policies.
protected string policyKeyInternal

A key intended to be unique to each IsPolicy instance.

public string PolicyKey { get; }

A key intended to be unique to each IsPolicy instance, which is passed with executions as the PolicyKey property.

protected PolicyBase(PolicyBuilder policyBuilder)

Constructs a new instance of a derived type of PolicyBase with the passed policyBuilder.