C# Class m.Http.Routing.RateLimitedEndpoint

Inheritance: Endpoint
ファイルを表示 Open project: joongonn/mHttp

Public Methods

Method Description
RateLimitedEndpoint ( Method method, Route route, Func handler, int requestsPerSecond, int burstRequestsPerSecond ) : System
UpdateRateLimitBucket ( ) : void

Private Methods

Method Description
RateLimitedEndpoint ( Method method, Route route, Func handler, LeakyBucket rateLimitBucket ) : System
Wrap ( Func handler, LeakyBucket rateLimitBucket ) : Task>.Func

Method Details

RateLimitedEndpoint() public method

public RateLimitedEndpoint ( Method method, Route route, Func handler, int requestsPerSecond, int burstRequestsPerSecond ) : System
method Method
route Route
handler Func
requestsPerSecond int
burstRequestsPerSecond int
return System

UpdateRateLimitBucket() public method

public UpdateRateLimitBucket ( ) : void
return void