File tree Expand file tree Collapse file tree
src/Throttlr.Api.RateLimit/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace RateLimit . Throttlr . Core
44{
5+ /// <summary>
6+ /// Represents the result of a rate limit check.
7+ /// </summary>
58 public sealed class RateLimitResult
6- {
7- /// <summary>
8- /// Represents the result of a rate limit check.
9- /// </summary>
9+ {
1010 private RateLimitResult ( bool isAllowed , int ? retryAfterSeconds = null )
1111 {
1212 IsAllowed = isAllowed ;
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ internal class SlidingWindowRateLimiter : IRateLimiter
1818 private readonly ISystemClock _clock ;
1919 private readonly RateLimitPolicy _policy ;
2020
21- /// <summary>
22- /// Initializes a new instance of the <see cref="SlidingWindowRateLimiter"/> class.
23- /// </summary>
2421 public SlidingWindowRateLimiter (
2522 IRateLimitStore store ,
2623 ISystemClock clock ,
@@ -31,7 +28,6 @@ public SlidingWindowRateLimiter(
3128 _policy = policy ?? throw new ArgumentNullException ( nameof ( policy ) ) ;
3229 }
3330
34- /// <inheritdoc />
3531 /// <inheritdoc />
3632 public async Task < RateLimitResult > ShouldLimitAsync (
3733 string key ,
Original file line number Diff line number Diff line change 55
66namespace RateLimit . Throttlr . Core
77{
8- /// <summary>
9- /// Default implementation of <see cref="ISystemClock"/> that uses <see cref="DateTimeOffset.UtcNow"/>.
10- /// </summary>
118 public sealed class SystemClock : ISystemClock
129 {
1310 /// <inheritdoc />
You can’t perform that action at this time.
0 commit comments