public MemoryCacheClientPolicyStore( IMemoryCache cache, IRateLimitLoader Loader) : base(cache) { _options = Loader.GetClientRateLimitOptions(); _policies = Loader.GetClientRateLimitPolicies(); }
public ClientRateLimitProcessor( ClientRateLimitOptions options, IRateLimitCounterStore counterStore, IClientPolicyStore policyStore, IRateLimitConfiguration config) : base(options, counterStore, new ClientCounterKeyBuilder(options), config) { _options = options; _policyStore = policyStore; }