Class LimitRate
public class LimitRate
- Inheritance
-
LimitRate
- Inherited Members
Constructors
LimitRate(int, TimeSpan)
public LimitRate(int occurrences, TimeSpan timeUnit)
Parameters
Fields
NoLimit
public static readonly LimitRate NoLimit
Field Value
Properties
Occurrences
public int Occurrences { get; }
Property Value
TimeUnit
public TimeSpan TimeUnit { get; }
Property Value
Methods
IsFasterThan(LimitRate)
public bool IsFasterThan(LimitRate rate)
Parameters
rate
LimitRate
Returns
IsSlower(long)
public bool IsSlower(long elapsed)
Parameters
elapsed
long
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
implicit operator double(LimitRate)
public static implicit operator double(LimitRate rate)
Parameters
rate
LimitRate
Returns
implicit operator LimitRate(double)
public static implicit operator LimitRate(double rate)
Parameters
rate
double