1 instantiation of MetadataName
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\MetadataName.cs (1)
28
public static MetadataName<T> Create<T>(string name) => new
MetadataName
<T>(name);
14 references to MetadataName
System.Threading.RateLimiting (14)
System\Threading\RateLimiting\MetadataName.cs (3)
15
public static
MetadataName
<TimeSpan> RetryAfter { get; } = Create<TimeSpan>("RETRY_AFTER");
20
public static
MetadataName
<string> ReasonPhrase { get; } = Create<string>("REASON_PHRASE");
28
public static
MetadataName
<T> Create<T>(string name) => new MetadataName<T>(name);
System\Threading\RateLimiting\MetadataName.T.cs (10)
12
public sealed class MetadataName<T> : IEquatable<
MetadataName
<T>>
17
/// Constructs a <see cref="
MetadataName
{T}"/> object with the given name.
45
return obj is
MetadataName
<T> m && Equals(m);
49
public bool Equals(
MetadataName
<T>? other)
60
/// Determines whether two <see cref="
MetadataName
{T}"/> are equal to each other.
65
public static bool operator ==(
MetadataName
<T> left,
MetadataName
<T> right)
71
/// Determines whether two <see cref="
MetadataName
{T}"/> are not equal to each other.
76
public static bool operator !=(
MetadataName
<T> left,
MetadataName
<T> right)
System\Threading\RateLimiting\RateLimitLease.cs (1)
35
public bool TryGetMetadata<T>(
MetadataName
<T> metadataName, [MaybeNull] out T metadata)