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

ResiliencePropertyKey<TValue>

public struct ResiliencePropertyKey<TValue>
Represents a key used by ResilienceProperties.
using Polly.Utils; using System.Runtime.CompilerServices; namespace Polly { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public readonly struct ResiliencePropertyKey<[System.Runtime.CompilerServices.Nullable(2)] TValue> { public string Key { get; } public ResiliencePropertyKey(string key) { Guard.NotNull<string>(key, "key"); Key = key; } public override string ToString() { return Key; } } }