Commit 124ba53
Make RateLimiterOptions follow Options pattern (#72530)
* Update ConcurrencyLimiterOptions.cs
* Update FixedWindowRateLimiterOptions.cs
* Update FixedWindowRateLimiterOptions.cs
* Update FixedWindowRateLimiterOptions.cs
* Update SlidingWindowRateLimiterOptions.cs
* Update TokenBucketRateLimiterOptions.cs
* Update ConcurrencyLimiter.cs
* Update FixedWindowRateLimiter.cs
* Update SlidingWindowRateLimiter.cs
* Update TokenBucketRateLimiter.cs
* Update ChainedLimiterTests.cs
* Update ConcurrencyLimiterOptions.cs
* Update FixedWindowRateLimiterOptions.cs
* Update SlidingWindowRateLimiterOptions.cs
* Update TokenBucketRateLimiterOptions.cs
* Update RateLimitPartition.cs
* Update System.Threading.RateLimiting.cs
* Update ChainedLimiterTests.cs
* Update ConcurrencyLimiter.cs
* Update FixedWindowRateLimiter.cs
* Update SlidingWindowRateLimiter.cs
* Update TokenBucketRateLimiter.cs
* Update ConcurrencyLimiterOptions.cs
* Update FixedWindowRateLimiterOptions.cs
* Update SlidingWindowRateLimiterOptions.cs
* Update ChainedLimiterTests.cs
* Update ChainedLimiterTests.cs
* Fix tests
* Update ConcurrencyLimiter.cs
* Update FixedWindowRateLimiter.cs
* Update SlidingWindowRateLimiter.cs
* Update TokenBucketRateLimiter.cs
* Update FixedWindowRateLimiter.cs
* Update SlidingWindowRateLimiter.cs
* Update TokenBucketRateLimiter.cs
* Update FixedWindowRateLimiterTests.cs
* Update SlidingWindowRateLimiterTests.cs
* Update TokenBucketRateLimiterTests.cs
* Update TokenBucketRateLimiter.cs
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/ConcurrencyLimiter.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/ConcurrencyLimiter.cs
Co-authored-by: Brennan <[email protected]>
* Update FixedWindowRateLimiter.cs
* Update SlidingWindowRateLimiter.cs
* Fixup
* Whitespace
* ArgumentNullException
* React to test change
* Fix tests
* Another test fix
* Feedback
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/ConcurrencyLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/FixedWindowRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/FixedWindowRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/SlidingWindowRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/SlidingWindowRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/TokenBucketRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/TokenBucketRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/TokenBucketRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Update src/libraries/System.Threading.RateLimiting/src/System/Threading/RateLimiting/TokenBucketRateLimiterOptions.cs
Co-authored-by: Brennan <[email protected]>
* Fix checks, add test
Co-authored-by: Brennan <[email protected]>1 parent 2a2edc8 commit 124ba53
File tree
17 files changed
+2043
-571
lines changed- src/libraries/System.Threading.RateLimiting
- ref
- src/System/Threading/RateLimiting
- tests
17 files changed
+2043
-571
lines changedLines changed: 24 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
42 | 61 | | |
43 | 62 | | |
44 | 63 | | |
| |||
Lines changed: 5 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 11 | | |
34 | 12 | | |
| 13 | + | |
35 | 14 | | |
36 | | - | |
| 15 | + | |
37 | 16 | | |
38 | 17 | | |
39 | 18 | | |
40 | 19 | | |
41 | 20 | | |
42 | 21 | | |
43 | 22 | | |
44 | | - | |
| 23 | + | |
45 | 24 | | |
46 | 25 | | |
47 | 26 | | |
| 27 | + | |
48 | 28 | | |
49 | | - | |
| 29 | + | |
50 | 30 | | |
51 | 31 | | |
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
48 | 73 | | |
49 | 74 | | |
50 | 75 | | |
| |||
Lines changed: 11 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 11 | | |
48 | 12 | | |
| 13 | + | |
49 | 14 | | |
50 | | - | |
| 15 | + | |
51 | 16 | | |
52 | 17 | | |
53 | 18 | | |
54 | 19 | | |
55 | 20 | | |
56 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
57 | 25 | | |
58 | 26 | | |
59 | 27 | | |
| 28 | + | |
60 | 29 | | |
61 | | - | |
| 30 | + | |
62 | 31 | | |
63 | 32 | | |
64 | 33 | | |
65 | 34 | | |
66 | 35 | | |
67 | 36 | | |
68 | 37 | | |
69 | | - | |
| 38 | + | |
70 | 39 | | |
71 | 40 | | |
72 | 41 | | |
| 42 | + | |
73 | 43 | | |
74 | | - | |
| 44 | + | |
75 | 45 | | |
76 | 46 | | |
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
| |||
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
101 | | - | |
102 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
103 | 117 | | |
104 | 118 | | |
105 | 119 | | |
| |||
125 | 139 | | |
126 | 140 | | |
127 | 141 | | |
128 | | - | |
129 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
130 | 150 | | |
131 | 151 | | |
132 | 152 | | |
| |||
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
51 | 77 | | |
52 | 78 | | |
53 | 79 | | |
| |||
0 commit comments