Class NOPThrottle
No operation throttle
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Throttling
Assembly: NFX.dll
Syntax
public sealed class NOPThrottle : Throttle, IConfigurable, IThrottle, IApplicationComponent, IDisposable
Properties
Instance
Returns a singlelton instance of the NOPThrottle
Declaration
public static NOPThrottle Instance { get; }
Property Value
Type | Description |
---|---|
NOPThrottle |
Methods
Reset()
Reset the internal state of the throttle
Declaration
public override void Reset()
Overrides
Try()
Checks whether the current throttle rate limit has not been reached per one unit of measurement. This method is usually used to throttle based on pass count
Declaration
public override bool Try()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Try(Double)
Checks whether the current throttle rate limit has not been reached for the provided value. This method is usually used to throttle based on values like financial amounts, data volumes, user counts, etc.
Declaration
public override bool Try(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.IDisposable