public ApiThrottleMiddleware(RequestDelegate next, IThrottleCacheProvider cache, IOptions <ApiThrottleOptions> options)
 {
     _next    = next;
     _cache   = cache;
     _options = options.Value;
 }
 public ApiThrottleActionFilter(IThrottleCacheProvider cache, ApiThrottleOptions options)
 {
     _cache   = cache;
     _options = options;
 }
Exemple #3
0
 public ApiThrottleService(IThrottleCacheProvider cache, IOptions <ApiThrottleOptions> options, IStorageProvider storage)
 {
     _cache   = cache;
     _options = options.Value;
     _storage = storage;
 }