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

ResilienceProperties

public sealed class ResilienceProperties : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
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.