Lean
$LEAN_TAG$
|
Provides extension methods for interacting with ITokenBucket instances as well as access to the NullTokenBucket via TokenBucket.Null More...
Static Public Member Functions | |
static void | Consume (this ITokenBucket bucket, long tokens, TimeSpan timeout) |
Provides an overload of ITokenBucket.Consume that accepts a TimeSpan timeout More... | |
Static Public Attributes | |
static ITokenBucket | Null = new NullTokenBucket() |
Gets an ITokenBucket that always permits consumption More... | |
Provides extension methods for interacting with ITokenBucket instances as well as access to the NullTokenBucket via TokenBucket.Null
Definition at line 25 of file TokenBucket.cs.
|
static |
Provides an overload of ITokenBucket.Consume that accepts a TimeSpan timeout
Definition at line 35 of file TokenBucket.cs.
|
static |
Gets an ITokenBucket that always permits consumption
Definition at line 30 of file TokenBucket.cs.