[This is preliminary documentation and is subject to change.]
The Throttle type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | Throttle | Initializes a new instance of the Throttle class |
![]() | Throttle(String, String) |
Constructor that identifies throttle by name, and optionally defines the
unit of measurement for this throttle instance
|
Methods
Name | Description | |
---|---|---|
![]() | __setComponentDirector | (Inherited from ApplicationComponent.) |
![]() | __setThrottling | |
![]() | Configure | |
![]() | Destructor | (Overrides ApplicationComponent Destructor .) |
![]() | Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) |
![]() | DoConfigure | |
![]() | EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | Register |
Register this instance with throttling container
|
![]() | Reset |
Reset the internal state of the throttle
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | 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
|
![]() | 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.
|
![]() | Try(DateTime, Double) |
Update current throttle timestamp
|
![]() | Unregister |
Unregister this instance from throttling container
|
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | DEFAULT_UNITS |
Properties
Name | Description | |
---|---|---|
![]() | ComponentCommonName |
Returns the common name used to identify the component, for example "Glue" for various IGlue implementations.
This name is searched-by some management tools that allow to find component by this name that does not change between
application restarts like ComponentSID does. Subordinate (non-root) components return null
(Inherited from ApplicationComponent.) |
![]() | ComponentDirector |
Returns a reference to an object that this app component services/operates under, or null
(Inherited from ApplicationComponent.) |
![]() | ComponentSID |
Returns process/instance unique app component system id
(Inherited from ApplicationComponent.) |
![]() | ComponentStartTime |
Returns local computer time of component start (not from application container time)
(Inherited from ApplicationComponent.) |
![]() | Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) |
![]() | DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) |
![]() | Name |
Returns the unique name of this instance
|
![]() | Throttling |
References the Throttling that this instance is registered with
|
![]() | Unit |
Returns the name of unit of measurement for this instance
|
See Also