C# Class Serenity.Throttler

Afficher le fichier Open project: volkanceylan/Serenity Class Usage Examples

Méthodes publiques

Méthode Description
Check ( ) : bool

Checks if over throttle limit

Reset ( ) : void

Resets the throttle.

Throttler ( string key, System.TimeSpan duration, int limit ) : System

Creates a new throttler

Method Details

Check() public méthode

Checks if over throttle limit
public Check ( ) : bool
Résultat bool

Reset() public méthode

Resets the throttle.
public Reset ( ) : void
Résultat void

Throttler() public méthode

Creates a new throttler
public Throttler ( string key, System.TimeSpan duration, int limit ) : System
key string Cache key for throttler. Include the resource name, e.g. username, you are throttling
duration System.TimeSpan Check period
limit int How many times are allowed
Résultat System