Token bucket and leaky token bucket implementations in .NET