C# Class CubeIsland.LyricsReloaded.Provider.RateLimit

显示文件 Open project: pschichtel/LyricsReloaded Class Usage Examples

Public Methods

Method Description
RateLimit ( long periodLength, int requestsPerPeriod ) : System
parse ( string input ) : RateLimit
shutdown ( ) : void
tryIncrement ( ) : bool

Private Methods

Method Description
reset ( ) : void

Method Details

RateLimit() public method

public RateLimit ( long periodLength, int requestsPerPeriod ) : System
periodLength long
requestsPerPeriod int
return System

parse() public static method

public static parse ( string input ) : RateLimit
input string
return RateLimit

shutdown() public method

public shutdown ( ) : void
return void

tryIncrement() public method

public tryIncrement ( ) : bool
return bool