Throttler constructor
namespace: Serenity assembly: Serenity.Net.Core
Creates a new throttler
public Throttler(IMemoryCache cache, string key, TimeSpan duration, int limit)
| parameter | description |
|---|---|
| cache | Cache |
| key | Cache key for throttler. Include the resource name, e.g. username, you are throttling |
| duration | Check period |
| limit | How many times are allowed |
See Also
- class Throttler