Class RateLimitingSelection
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.AppModel
Assembly: Cephalon.Abstractions.dll
Describes the rate-limiting inputs resolved for a Cephalon app.
public sealed class RateLimitingSelectionInheritance
Section titled “Inheritance”object ← RateLimitingSelection
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”RateLimitingSelection(bool?, string?, int?, int?, int?, int?, IReadOnlyList<RateLimitingOverrideSelection>?)
Section titled “ RateLimitingSelection(bool?, string?, int?, int?, int?, int?, IReadOnlyList<RateLimitingOverrideSelection>?)”Initializes a new instance of the
[JsonConstructor]public RateLimitingSelection(bool? enabled = null, string? algorithm = null, int? permitLimit = null, int? queueLimit = null, int? windowSeconds = null, int? segmentsPerWindow = null, IReadOnlyList<RateLimitingOverrideSelection>? overrides = null)Parameters
Section titled “Parameters”enabled bool?
Whether rate limiting was explicitly enabled.
algorithm string?
The requested rate-limiting algorithm, such as FixedWindow or TokenBucket.
permitLimit int?
The maximum permits available per limiter window or bucket.
queueLimit int?
The maximum queued requests allowed before rejection.
windowSeconds int?
The limiter window duration in seconds when the selected algorithm uses windows.
segmentsPerWindow int?
The number of segments per window when sliding windows are used.
overrides IReadOnlyList<RateLimitingOverrideSelection>?
The named override policies targeted at specific transports or behaviors.
Properties
Section titled “Properties”Algorithm
Section titled “ Algorithm”Gets the requested rate-limiting algorithm, such as FixedWindow or TokenBucket.
public string? Algorithm { get; }Property Value
Section titled “Property Value”Gets an empty rate-limiting-selection instance.
public static RateLimitingSelection Empty { get; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets a value indicating whether rate limiting was explicitly enabled.
public bool? Enabled { get; }Property Value
Section titled “Property Value”bool?
HasValues
Section titled “ HasValues”Gets a value indicating whether any rate-limiting-selection inputs were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”Overrides
Section titled “ Overrides”Gets the named override policies targeted at specific transports or behaviors.
public IReadOnlyList<RateLimitingOverrideSelection> Overrides { get; }Property Value
Section titled “Property Value”IReadOnlyList<RateLimitingOverrideSelection>
PermitLimit
Section titled “ PermitLimit”Gets the maximum permits available per limiter window or bucket.
public int? PermitLimit { get; }Property Value
Section titled “Property Value”int?
QueueLimit
Section titled “ QueueLimit”Gets the maximum queued requests allowed before rejection.
public int? QueueLimit { get; }Property Value
Section titled “Property Value”int?
SegmentsPerWindow
Section titled “ SegmentsPerWindow”Gets the number of segments per window when sliding windows are used.
public int? SegmentsPerWindow { get; }Property Value
Section titled “Property Value”int?
WindowSeconds
Section titled “ WindowSeconds”Gets the limiter window duration in seconds when the selected algorithm uses windows.
public int? WindowSeconds { get; }Property Value
Section titled “Property Value”int?