<PackageReference Include="Polly.Core" Version="8.0.0-alpha.7" />

ResilienceProperties

public sealed class ResilienceProperties
Represents a collection of custom resilience properties.

public TValue GetValue<TValue>(ResiliencePropertyKey<TValue> key, TValue defaultValue)

Gets the value of a given property with a fallback default value.

public void Set<TValue>(ResiliencePropertyKey<TValue> key, TValue value)

Sets the value of a given property.

public bool TryGetValue<TValue>(ResiliencePropertyKey<TValue> key, out TValue value)

Gets the value of a given property.