<PackageReference Include="System.Threading.RateLimiting" Version="11.0.0-preview.6.26359.118" />

System.Threading.RateLimiting.RateLimitPartition<TKey>

public struct RateLimitPartition<TKey>
Type returned by Get<T> methods to be used by Create<T, U> to know what partitions are configured.
public Func<TKey, RateLimiter> Factory { get; }

The function called when a rate limiter for the given partitionKey is needed.

public TKey PartitionKey { get; }

The specific key for this partition.

public RateLimitPartition(TKey partitionKey, Func<TKey, RateLimiter> factory)

Constructs the RateLimitPartition<T> for use in Create<T, U>.