C# 클래스 Serenity.Throttler

파일 보기 프로젝트 열기: volkanceylan/Serenity 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Check() 공개 메소드

Checks if over throttle limit
public Check ( ) : bool
리턴 bool

Reset() 공개 메소드

Resets the throttle.
public Reset ( ) : void
리턴 void

Throttler() 공개 메소드

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
리턴 System