@@ -40,6 +40,10 @@ public MetadataName(string name) { }
40
40
public static bool operator != ( System . Threading . RateLimiting . MetadataName < T > left , System . Threading . RateLimiting . MetadataName < T > right ) { throw null ; }
41
41
public override string ToString ( ) { throw null ; }
42
42
}
43
+ public static partial class PartitionedRateLimiter
44
+ {
45
+ public static System . Threading . RateLimiting . PartitionedRateLimiter < TResource > Create < TResource , TPartitionKey > ( System . Func < TResource , System . Threading . RateLimiting . RateLimitPartition < TPartitionKey > > partitioner , System . Collections . Generic . IEqualityComparer < TPartitionKey > ? equalityComparer = null ) where TPartitionKey : notnull { throw null ; }
46
+ }
43
47
public abstract partial class PartitionedRateLimiter < TResource > : System . IAsyncDisposable , System . IDisposable
44
48
{
45
49
protected PartitionedRateLimiter ( ) { }
@@ -83,6 +87,21 @@ protected virtual void Dispose(bool disposing) { }
83
87
public abstract bool TryGetMetadata ( string metadataName , out object ? metadata ) ;
84
88
public bool TryGetMetadata < T > ( System . Threading . RateLimiting . MetadataName < T > metadataName , [ System . Diagnostics . CodeAnalysis . MaybeNullAttribute ] out T metadata ) { throw null ; }
85
89
}
90
+ public static partial class RateLimitPartition
91
+ {
92
+ public static System . Threading . RateLimiting . RateLimitPartition < TKey > CreateConcurrencyLimiter < TKey > ( TKey partitionKey , System . Func < TKey , System . Threading . RateLimiting . ConcurrencyLimiterOptions > factory ) { throw null ; }
93
+ public static System . Threading . RateLimiting . RateLimitPartition < TKey > CreateNoLimiter < TKey > ( TKey partitionKey ) { throw null ; }
94
+ public static System . Threading . RateLimiting . RateLimitPartition < TKey > CreateTokenBucketLimiter < TKey > ( TKey partitionKey , System . Func < TKey , System . Threading . RateLimiting . TokenBucketRateLimiterOptions > factory ) { throw null ; }
95
+ public static System . Threading . RateLimiting . RateLimitPartition < TKey > Create < TKey > ( TKey partitionKey , System . Func < TKey , System . Threading . RateLimiting . RateLimiter > factory ) { throw null ; }
96
+ }
97
+ public partial struct RateLimitPartition < TKey >
98
+ {
99
+ private readonly TKey _PartitionKey_k__BackingField ;
100
+ private object _dummy ;
101
+ private int _dummyPrimitive ;
102
+ public RateLimitPartition ( TKey partitionKey , System . Func < TKey , System . Threading . RateLimiting . RateLimiter > factory ) { throw null ; }
103
+ public readonly TKey PartitionKey { get { throw null ; } }
104
+ }
86
105
public abstract partial class ReplenishingRateLimiter : System . Threading . RateLimiting . RateLimiter
87
106
{
88
107
protected ReplenishingRateLimiter ( ) { }
@@ -113,4 +132,49 @@ public TokenBucketRateLimiterOptions(int tokenLimit, System.Threading.RateLimiti
113
132
public int TokenLimit { get { throw null ; } }
114
133
public int TokensPerPeriod { get { throw null ; } }
115
134
}
135
+ public sealed partial class SlidingWindowRateLimiter : System . Threading . RateLimiting . ReplenishingRateLimiter
136
+ {
137
+ public SlidingWindowRateLimiter ( System . Threading . RateLimiting . SlidingWindowRateLimiterOptions options ) { }
138
+ public override System . TimeSpan ? IdleDuration { get { throw null ; } }
139
+ public override bool IsAutoReplenishing { get { throw null ; } }
140
+ public override System . TimeSpan ReplenishmentPeriod { get { throw null ; } }
141
+ protected override System . Threading . RateLimiting . RateLimitLease AcquireCore ( int requestCount ) { throw null ; }
142
+ protected override void Dispose ( bool disposing ) { }
143
+ protected override System . Threading . Tasks . ValueTask DisposeAsyncCore ( ) { throw null ; }
144
+ public override int GetAvailablePermits ( ) { throw null ; }
145
+ public override bool TryReplenish ( ) { throw null ; }
146
+ protected override System . Threading . Tasks . ValueTask < System . Threading . RateLimiting . RateLimitLease > WaitAsyncCore ( int requestCount , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
147
+ }
148
+ public sealed partial class SlidingWindowRateLimiterOptions
149
+ {
150
+ public SlidingWindowRateLimiterOptions ( int permitLimit , System . Threading . RateLimiting . QueueProcessingOrder queueProcessingOrder , int queueLimit , System . TimeSpan window , int segmentsPerWindow , bool autoReplenishment = true ) { }
151
+ public bool AutoReplenishment { get { throw null ; } }
152
+ public int QueueLimit { get { throw null ; } }
153
+ public System . Threading . RateLimiting . QueueProcessingOrder QueueProcessingOrder { get { throw null ; } }
154
+ public System . TimeSpan Window { get { throw null ; } }
155
+ public int PermitLimit { get { throw null ; } }
156
+ public int SegmentsPerWindow { get { throw null ; } }
157
+ }
158
+ public sealed partial class FixedWindowRateLimiter : System . Threading . RateLimiting . ReplenishingRateLimiter
159
+ {
160
+ public FixedWindowRateLimiter ( System . Threading . RateLimiting . FixedWindowRateLimiterOptions options ) { }
161
+ public override System . TimeSpan ? IdleDuration { get { throw null ; } }
162
+ public override bool IsAutoReplenishing { get { throw null ; } }
163
+ public override System . TimeSpan ReplenishmentPeriod { get { throw null ; } }
164
+ protected override System . Threading . RateLimiting . RateLimitLease AcquireCore ( int requestCount ) { throw null ; }
165
+ protected override void Dispose ( bool disposing ) { }
166
+ protected override System . Threading . Tasks . ValueTask DisposeAsyncCore ( ) { throw null ; }
167
+ public override int GetAvailablePermits ( ) { throw null ; }
168
+ public override bool TryReplenish ( ) { throw null ; }
169
+ protected override System . Threading . Tasks . ValueTask < System . Threading . RateLimiting . RateLimitLease > WaitAsyncCore ( int requestCount , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
170
+ }
171
+ public sealed partial class FixedWindowRateLimiterOptions
172
+ {
173
+ public FixedWindowRateLimiterOptions ( int permitLimit , System . Threading . RateLimiting . QueueProcessingOrder queueProcessingOrder , int queueLimit , System . TimeSpan window , bool autoReplenishment = true ) { }
174
+ public bool AutoReplenishment { get { throw null ; } }
175
+ public int QueueLimit { get { throw null ; } }
176
+ public System . Threading . RateLimiting . QueueProcessingOrder QueueProcessingOrder { get { throw null ; } }
177
+ public System . TimeSpan Window { get { throw null ; } }
178
+ public int PermitLimit { get { throw null ; } }
179
+ }
116
180
}
0 commit comments