Table of Contents

Class ThrottlingException

Namespace
Cuemon.AspNetCore.Http.Throttling
Assembly
Cuemon.AspNetCore.dll

The exception that is thrown when a given request threshold has been reached and then throttled.

public class ThrottlingException : TooManyRequestsException, ISerializable
Inheritance
Object
Exception
ThrottlingException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState

Constructors

ThrottlingException(String, Int32, TimeSpan, DateTime)

Initializes a new instance of the ThrottlingException class.

public ThrottlingException(string message, int rateLimit, TimeSpan delta, DateTime reset)

Parameters

message String

The message that describes the HTTP status code.

rateLimit Int32

The allowed rate of requests for a given window.

delta TimeSpan

The remaining duration of a window.

reset DateTime

The date and time when a window is being reset.

Properties

Delta

Gets the remaining duration of a window.

public TimeSpan Delta { get; }

Property Value

TimeSpan

The remaining duration of a window.

RateLimit

Gets the allowed rate of requests for a given window.

public int RateLimit { get; }

Property Value

Int32

The allowed rate of requests for a given window.

Reset

Gets date and time when a window is being reset.

public DateTime Reset { get; }

Property Value

DateTime

The date and time when a window is being reset.

See Also