Class RateLimitExceededException
The RateLimitExceededException is an exception describing an error occuring when a client issues too many requests over a period of time.
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common
Assembly: EPiServer.Social.Common.dll
Version: 1.5.4Syntax
public class RateLimitExceededException : SocialException, ISerializable, _Exception
Constructors
RateLimitExceededException(Int64, Int64, Int64, Int64)
Constructor
Declaration
public RateLimitExceededException(long requestLimit, long requestsIssued, long requestIntervalInSeconds, long secondsUntilReset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | requestLimit | Maximum number of requests allowed per request interval |
| System.Int64 | requestsIssued | Number of requests issued in the request interval |
| System.Int64 | requestIntervalInSeconds | Length of the request interval in seconds |
| System.Int64 | secondsUntilReset | Number of seconds until the request count will reset |
Properties
RequestInterval
Gets the length of the request interval for which requests are tallied.
Declaration
public TimeSpan RequestInterval { get; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
RequestLimit
Gets the maximum number of requests allowed to be issued in a given request interval.
Declaration
public long RequestLimit { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
RequestsIssued
Gets the number of requests that have been issued in the request interval.
Declaration
public long RequestsIssued { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
RetryAfter
Gets the amount of time remaining until the request count will reset.
Declaration
public TimeSpan RetryAfter { get; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception