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

ResiliencePropertyKey<TValue>

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