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