File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
fundamentals/middleware/rate-limit/WebRateLimitAuth Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 129
129
app . UseRateLimiter ( new RateLimiterOptions ( )
130
130
. AddTokenBucketLimiter ( policyName : tokenPolicy ,
131
131
new TokenBucketRateLimiterOptions ( tokenLimit : myOptions . tokenLimit ,
132
- queueProcessingOrder : QueueProcessingOrder . OldestFirst ,
133
- queueLimit : myOptions . queueLimit ,
134
- replenishmentPeriod : TimeSpan . FromSeconds ( myOptions . replenishmentPeriod ) ,
135
- tokensPerPeriod : myOptions . tokensPerPeriod ,
136
- autoReplenishment : myOptions . autoReplenishment ) ) ) ;
132
+ queueProcessingOrder : QueueProcessingOrder . OldestFirst ,
133
+ queueLimit : myOptions . queueLimit ,
134
+ replenishmentPeriod : TimeSpan . FromSeconds ( myOptions . replenishmentPeriod ) ,
135
+ tokensPerPeriod : myOptions . tokensPerPeriod ,
136
+ autoReplenishment : myOptions . autoReplenishment ) ) ) ;
137
137
138
138
app . MapGet ( "/" , ( ) => Results . Ok ( $ "Token Limiter { GetTicks ( ) } ") )
139
139
. RequireRateLimiting ( tokenPolicy ) ;
You can’t perform that action at this time.
0 commit comments