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

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; }

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

protected PolicyBase(PolicyBuilder policyBuilder)

Initializes a new instance of the PolicyBase class.