Throttler class

namespace: Serenity   assemblySerenity.Net.Core

Provides throttling checks for operations. E.g. allow 10 login attempts per minute.

public class Throttler

Public Members

name description
Throttler(…) Creates a new throttler
CacheKey { get; } Full cache key
Duration { get; } Duration
Key { get; } Cache key
Limit { get; } Limit
Check() Checks if over throttle limit
Reset() Resets the throttle.

See Also