Show / Hide Table of Contents

    Class ThrottleRequest

    Represents the request usage and quota in the context of throttling.

    Inheritance
    System.Object
    ThrottleRequest
    Namespace: Cuemon.AspNetCore.Http.Throttling
    Assembly: Cuemon.AspNetCore.dll
    Syntax
    public class ThrottleRequest

    Constructors

    | Improve this Doc

    ThrottleRequest(ThrottleQuota)

    Initializes a new instance of the ThrottleRequest class.

    Declaration
    public ThrottleRequest(ThrottleQuota quota)
    Parameters
    Type Name Description
    ThrottleQuota quota

    The allowed quota of HTTP requests.

    Properties

    | Improve this Doc

    Expires

    Gets the computed expiration value of a throttled rate limit.

    Declaration
    public DateTime Expires { get; }
    Property Value
    Type Description
    System.DateTime

    The computed expiration value of throttled rate limit.

    Remarks

    This property is measured in Coordinated Universal Time (UTC) (also known as Greenwich Mean Time).

    | Improve this Doc

    Quota

    Gets the throttling quota that defines the rate limit of HTTP requests.

    Declaration
    public ThrottleQuota Quota { get; }
    Property Value
    Type Description
    ThrottleQuota

    The throttling quota that defines the rate limit of HTTP requests.

    | Improve this Doc

    Total

    Gets the total amount of HTTP requests.

    Declaration
    public int Total { get; }
    Property Value
    Type Description
    System.Int32

    The total amount of HTTP requests.

    Extension Methods

    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Byte[], Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, Byte[]>, Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Byte[], Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Byte[], Action<ContentTimeBasedOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX