Table of Contents

Struct OnRateLimiterRejectedArguments

Namespace
Polly.RateLimiting
Assembly
Polly.RateLimiting.dll

The arguments used by the OnRejected.

public readonly struct OnRateLimiterRejectedArguments
Inherited Members

Remarks

Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.

Constructors

OnRateLimiterRejectedArguments(ResilienceContext, RateLimitLease)

Initializes a new instance of the OnRateLimiterRejectedArguments struct.

public OnRateLimiterRejectedArguments(ResilienceContext context, RateLimitLease lease)

Parameters

context ResilienceContext

The context associated with the execution of a user-provided callback.

lease RateLimitLease

The lease that has no permits and was rejected by the rate limiter.

Properties

Context

Gets the context associated with the execution of a user-provided callback.

public ResilienceContext Context { get; }

Property Value

ResilienceContext

Lease

Gets the lease that has no permits and was rejected by the rate limiter.

public RateLimitLease Lease { get; }

Property Value

RateLimitLease