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