public void OnApiRequest(ApiReader reader) { if (isReadyToReset()) { ResetLimiter(); } currentRateCounter++; }
/// <summary> /// Declare this Configuration as the global default configuration, it will be used when no configuration is provided to the api reader. /// </summary> public ApiConfiguration DeclareAsDefault() { ApiReader.SetDefaultConfiguration(this); return(this); }