Interface IThrottling
Defines throttling interface to be implemented by the throttling service
Inherited Members
System.IDisposable.Dispose()
Namespace: NFX.Throttling
Assembly: NFX.dll
Syntax
public interface IThrottling : IApplicationComponent, IDisposable
Properties
Enabled
Turns throttling functionality on/off
Declaration
bool Enabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[String]
Get a throttle by name
Declaration
IThrottle this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
IThrottle |
Methods
RegisterThrottle(Throttle)
Register a throttle with this throttling container
Declaration
void RegisterThrottle(Throttle throttle)
Parameters
Type | Name | Description |
---|---|---|
Throttle | throttle |
UnregisterThrottle(Throttle)
Unregister a throttle from this throttling container
Declaration
bool UnregisterThrottle(Throttle throttle)
Parameters
Type | Name | Description |
---|---|---|
Throttle | throttle |
Returns
Type | Description |
---|---|
System.Boolean | True if throttle was successfully unregistered |