System.Threading.RateLimiting
18 wrapped types. Load them with using { "System.Threading.RateLimiting" }. Click a class to open it.
ConcurrencyLimiter class sealed · extends RateLimiter
System.Threading.RateLimiting.ConcurrencyLimiter · assembly System.Threading.RateLimiting
Implements: IAsyncDisposable, IDisposable
Constructors
new ConcurrencyLimiter(ConcurrencyLimiterOptions options) |
Ring: new ConcurrencyLimiter(args) uses one constructor; the others are chosen by the parameter names: new ConcurrencyLimiter().@New([ :param = value ]) or dnNew("ConcurrencyLimiter",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IdleDuration | TimeSpan? | read | o.getIdleDuration() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetStatistics | callMethod("GetStatistics",[]) | RateLimiterStatistics GetStatistics() |
Members of the base class are inherited.
ConcurrencyLimiterOptions class sealed
System.Threading.RateLimiting.ConcurrencyLimiterOptions · assembly System.Threading.RateLimiting
Constructors
new ConcurrencyLimiterOptions() |
Ring: new ConcurrencyLimiterOptions(args) uses one constructor; the others are chosen by the parameter names: new ConcurrencyLimiterOptions().@New([ :param = value ]) or dnNew("ConcurrencyLimiterOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
PermitLimit | int | read, write | o.PermitLimit o.PermitLimit = v |
QueueProcessingOrder | QueueProcessingOrder | read, write | o.QueueProcessingOrder o.QueueProcessingOrder = v |
QueueLimit | int | read, write | o.QueueLimit o.QueueLimit = v |
FixedWindowRateLimiter class sealed · extends ReplenishingRateLimiter
System.Threading.RateLimiting.FixedWindowRateLimiter · assembly System.Threading.RateLimiting
Implements: IAsyncDisposable, IDisposable
Constructors
new FixedWindowRateLimiter(FixedWindowRateLimiterOptions options) |
Ring: new FixedWindowRateLimiter(args) uses one constructor; the others are chosen by the parameter names: new FixedWindowRateLimiter().@New([ :param = value ]) or dnNew("FixedWindowRateLimiter",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IdleDuration | TimeSpan? | read | o.getIdleDuration() |
IsAutoReplenishing | bool | read | o.getIsAutoReplenishing() |
ReplenishmentPeriod | TimeSpan | read | o.getReplenishmentPeriod() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetStatistics | callMethod("GetStatistics",[]) | RateLimiterStatistics GetStatistics() |
TryReplenish | callMethod("TryReplenish",[]) | bool TryReplenish() |
Members of the base class are inherited.
FixedWindowRateLimiterOptions class sealed
System.Threading.RateLimiting.FixedWindowRateLimiterOptions · assembly System.Threading.RateLimiting
Constructors
new FixedWindowRateLimiterOptions() |
Ring: new FixedWindowRateLimiterOptions(args) uses one constructor; the others are chosen by the parameter names: new FixedWindowRateLimiterOptions().@New([ :param = value ]) or dnNew("FixedWindowRateLimiterOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Window | TimeSpan | read, write | o.Window o.Window = v |
AutoReplenishment | bool | read, write | o.AutoReplenishment o.AutoReplenishment = v |
PermitLimit | int | read, write | o.PermitLimit o.PermitLimit = v |
QueueProcessingOrder | QueueProcessingOrder | read, write | o.QueueProcessingOrder o.QueueProcessingOrder = v |
QueueLimit | int | read, write | o.QueueLimit o.QueueLimit = v |
MetadataName class static
System.Threading.RateLimiting.MetadataName · assembly System.Threading.RateLimiting
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RetryAfter | MetadataName<TimeSpan> | read · static | o.RetryAfter |
ReasonPhrase | MetadataName<string> | read · static | o.ReasonPhrase |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(value)Create([ :name = … ]) | static MetadataName<T> Create<T>(string name) |
MetadataName1 class sealed
System.Threading.RateLimiting.MetadataName`1 · assembly System.Threading.RateLimiting
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Name | string | read | o.Name |
PartitionedRateLimiter class static
System.Threading.RateLimiting.PartitionedRateLimiter · assembly System.Threading.RateLimiting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create([ :partitioner = …, :equalityComparer = … ]) | static PartitionedRateLimiter<TResource> Create<TResource, TPartitionKey>(Func<TResource, RateLimitPartition<TPartitionKey>> partitioner, IEqualityComparer<TPartitionKey> equalityComparer = …) |
CreateChained | CreateChained(p1) | static PartitionedRateLimiter<TResource> CreateChained<TResource>(PartitionedRateLimiter<TResource>[] limiters) |
PartitionedRateLimiter1 class abstract
System.Threading.RateLimiting.PartitionedRateLimiter`1 · assembly System.Threading.RateLimiting
Implements: IAsyncDisposable, IDisposable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
WithTranslatedKey | callMethod("WithTranslatedKey",[p1,p2]) | PartitionedRateLimiter<TOuter> WithTranslatedKey<TOuter>(Func<TOuter, TResource> keyAdapter, bool leaveOpen) |
RateLimiter class abstract
System.Threading.RateLimiting.RateLimiter · assembly System.Threading.RateLimiting
Implements: IAsyncDisposable, IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IdleDuration | TimeSpan? | read | o.IdleDuration |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AcquireAsync | AcquireAsync([ :permitCount = …, :cancellationToken = … ]) | ValueTask<RateLimitLease> AcquireAsync(int permitCount = …, CancellationToken cancellationToken = …) |
AttemptAcquire | AttemptAcquire(value)AttemptAcquire([ :permitCount = … ]) | RateLimitLease AttemptAcquire(int permitCount = …) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
DisposeAsync | callMethod("DisposeAsync",[]) | ValueTask DisposeAsync() |
GetStatistics | callMethod("GetStatistics",[]) | RateLimiterStatistics GetStatistics() |
RateLimiterStatistics class
System.Threading.RateLimiting.RateLimiterStatistics · assembly System.Threading.RateLimiting
Constructors
new RateLimiterStatistics() |
Ring: new RateLimiterStatistics(args) uses one constructor; the others are chosen by the parameter names: new RateLimiterStatistics().@New([ :param = value ]) or dnNew("RateLimiterStatistics",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CurrentAvailablePermits | long | read, write | o.CurrentAvailablePermits o.CurrentAvailablePermits = v |
CurrentQueuedCount | long | read, write | o.CurrentQueuedCount o.CurrentQueuedCount = v |
TotalFailedLeases | long | read, write | o.TotalFailedLeases o.TotalFailedLeases = v |
TotalSuccessfulLeases | long | read, write | o.TotalSuccessfulLeases o.TotalSuccessfulLeases = v |
RateLimitLease class abstract
System.Threading.RateLimiting.RateLimitLease · assembly System.Threading.RateLimiting
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsAcquired | bool | read | o.IsAcquired |
MetadataNames | IEnumerable<string> | read | o.MetadataNames |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetAllMetadata | callMethod("GetAllMetadata",[]) | IEnumerable<KeyValuePair<string, object>> GetAllMetadata() |
TryGetMetadata | TryGetMetadata(p1) | bool TryGetMetadata(string metadataName, out object metadata)bool TryGetMetadata<T>(MetadataName<T> metadataName, out T metadata) |
RateLimitPartition class static
System.Threading.RateLimiting.RateLimitPartition · assembly System.Threading.RateLimiting
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Get | @Get(p1,p2) | static RateLimitPartition<TKey> Get<TKey>(TKey partitionKey, Func<TKey, RateLimiter> factory) |
GetConcurrencyLimiter | GetConcurrencyLimiter(p1,p2) | static RateLimitPartition<TKey> GetConcurrencyLimiter<TKey>(TKey partitionKey, Func<TKey, ConcurrencyLimiterOptions> factory) |
GetFixedWindowLimiter | GetFixedWindowLimiter(p1,p2) | static RateLimitPartition<TKey> GetFixedWindowLimiter<TKey>(TKey partitionKey, Func<TKey, FixedWindowRateLimiterOptions> factory) |
GetNoLimiter | GetNoLimiter(p1) | static RateLimitPartition<TKey> GetNoLimiter<TKey>(TKey partitionKey) |
GetSlidingWindowLimiter | GetSlidingWindowLimiter(p1,p2) | static RateLimitPartition<TKey> GetSlidingWindowLimiter<TKey>(TKey partitionKey, Func<TKey, SlidingWindowRateLimiterOptions> factory) |
GetTokenBucketLimiter | GetTokenBucketLimiter(p1,p2) | static RateLimitPartition<TKey> GetTokenBucketLimiter<TKey>(TKey partitionKey, Func<TKey, TokenBucketRateLimiterOptions> factory) |
RateLimitPartition1 struct
System.Threading.RateLimiting.RateLimitPartition`1 · assembly System.Threading.RateLimiting
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
PartitionKey | TKey | read | o.PartitionKey |
Factory | Func<TKey, RateLimiter> | read | o.Factory |
ReplenishingRateLimiter class abstract · extends RateLimiter
System.Threading.RateLimiting.ReplenishingRateLimiter · assembly System.Threading.RateLimiting
Implements: IAsyncDisposable, IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ReplenishmentPeriod | TimeSpan | read | o.ReplenishmentPeriod |
IsAutoReplenishing | bool | read | o.IsAutoReplenishing |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
TryReplenish | callMethod("TryReplenish",[]) | bool TryReplenish() |
Members of the base class are inherited.
SlidingWindowRateLimiter class sealed · extends ReplenishingRateLimiter
System.Threading.RateLimiting.SlidingWindowRateLimiter · assembly System.Threading.RateLimiting
Implements: IAsyncDisposable, IDisposable
Constructors
new SlidingWindowRateLimiter(SlidingWindowRateLimiterOptions options) |
Ring: new SlidingWindowRateLimiter(args) uses one constructor; the others are chosen by the parameter names: new SlidingWindowRateLimiter().@New([ :param = value ]) or dnNew("SlidingWindowRateLimiter",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IdleDuration | TimeSpan? | read | o.getIdleDuration() |
IsAutoReplenishing | bool | read | o.getIsAutoReplenishing() |
ReplenishmentPeriod | TimeSpan | read | o.getReplenishmentPeriod() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetStatistics | callMethod("GetStatistics",[]) | RateLimiterStatistics GetStatistics() |
TryReplenish | callMethod("TryReplenish",[]) | bool TryReplenish() |
Members of the base class are inherited.
SlidingWindowRateLimiterOptions class sealed
System.Threading.RateLimiting.SlidingWindowRateLimiterOptions · assembly System.Threading.RateLimiting
Constructors
new SlidingWindowRateLimiterOptions() |
Ring: new SlidingWindowRateLimiterOptions(args) uses one constructor; the others are chosen by the parameter names: new SlidingWindowRateLimiterOptions().@New([ :param = value ]) or dnNew("SlidingWindowRateLimiterOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Window | TimeSpan | read, write | o.Window o.Window = v |
SegmentsPerWindow | int | read, write | o.SegmentsPerWindow o.SegmentsPerWindow = v |
AutoReplenishment | bool | read, write | o.AutoReplenishment o.AutoReplenishment = v |
PermitLimit | int | read, write | o.PermitLimit o.PermitLimit = v |
QueueProcessingOrder | QueueProcessingOrder | read, write | o.QueueProcessingOrder o.QueueProcessingOrder = v |
QueueLimit | int | read, write | o.QueueLimit o.QueueLimit = v |
TokenBucketRateLimiter class sealed · extends ReplenishingRateLimiter
System.Threading.RateLimiting.TokenBucketRateLimiter · assembly System.Threading.RateLimiting
Implements: IAsyncDisposable, IDisposable
Constructors
new TokenBucketRateLimiter(TokenBucketRateLimiterOptions options) |
Ring: new TokenBucketRateLimiter(args) uses one constructor; the others are chosen by the parameter names: new TokenBucketRateLimiter().@New([ :param = value ]) or dnNew("TokenBucketRateLimiter",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IdleDuration | TimeSpan? | read | o.getIdleDuration() |
IsAutoReplenishing | bool | read | o.getIsAutoReplenishing() |
ReplenishmentPeriod | TimeSpan | read | o.getReplenishmentPeriod() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetStatistics | callMethod("GetStatistics",[]) | RateLimiterStatistics GetStatistics() |
TryReplenish | callMethod("TryReplenish",[]) | bool TryReplenish() |
Members of the base class are inherited.
TokenBucketRateLimiterOptions class sealed
System.Threading.RateLimiting.TokenBucketRateLimiterOptions · assembly System.Threading.RateLimiting
Constructors
new TokenBucketRateLimiterOptions() |
Ring: new TokenBucketRateLimiterOptions(args) uses one constructor; the others are chosen by the parameter names: new TokenBucketRateLimiterOptions().@New([ :param = value ]) or dnNew("TokenBucketRateLimiterOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ReplenishmentPeriod | TimeSpan | read, write | o.ReplenishmentPeriod o.ReplenishmentPeriod = v |
TokensPerPeriod | int | read, write | o.TokensPerPeriod o.TokensPerPeriod = v |
AutoReplenishment | bool | read, write | o.AutoReplenishment o.AutoReplenishment = v |
TokenLimit | int | read, write | o.TokenLimit o.TokenLimit = v |
QueueProcessingOrder | QueueProcessingOrder | read, write | o.QueueProcessingOrder o.QueueProcessingOrder = v |
QueueLimit | int | read, write | o.QueueLimit o.QueueLimit = v |