PartitionedRateLimiter.CreateChained Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a single PartitionedRateLimiter
public:
generic
static System::Threading::RateLimiting::PartitionedRateLimiter ^ CreateChained(... cli::array ^> ^ limiters);
public static System.Threading.RateLimiting.PartitionedRateLimiter CreateChained(params System.Threading.RateLimiting.PartitionedRateLimiter[] limiters);
static member CreateChained : System.Threading.RateLimiting.PartitionedRateLimiter<'Resource>[] -> System.Threading.RateLimiting.PartitionedRateLimiter<'Resource>
Public Shared Function CreateChained(Of TResource) (ParamArray limiters As PartitionedRateLimiter(Of TResource)()) As PartitionedRateLimiter(Of TResource)
Type Parameters
- TResource
The resource type that is being rate limited.
Parameters
- limiters
-
PartitionedRateLimiter
[]
The PartitionedRateLimiter
Returns
Exceptions
limiters is a null parameter.
limiters is an empty array.
Remarks
Methods on the returned PartitionedRateLimiterlimiters in the order given.
GetStatistics(TResource) will return the lowest value for CurrentAvailablePermits, the inner-most limiter's TotalSuccessfulLeases, and the aggregate values for the rest of the properties from the limiters.
RateLimitLeases returned will aggregate metadata and for duplicates use the value of the first lease with the same metadata name.
Disposing the returned PartitionedRateLimiterlimiters. Callers are expected to dispose the inner limiters themselves once they are no longer in use.