Show / Hide Table of Contents

    Class ThrottleQuota

    Specifies the allowed quota and window duration of HTTP requests.

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

    Constructors

    | Improve this Doc

    ThrottleQuota(Int32, Double, TimeUnit)

    Initializes a new instance of the ThrottleQuota class.

    Declaration
    public ThrottleQuota(int rateLimit, double window, TimeUnit windowUnit)
    Parameters
    Type Name Description
    System.Int32 rateLimit

    The allowed rate from within a given window.

    System.Double window

    The duration of the window.

    TimeUnit windowUnit

    One of the enumeration values that specifies the time unit of window.

    | Improve this Doc

    ThrottleQuota(Int32, TimeSpan)

    Initializes a new instance of the ThrottleQuota class.

    Declaration
    public ThrottleQuota(int rateLimit, TimeSpan window)
    Parameters
    Type Name Description
    System.Int32 rateLimit

    The allowed rate from within a given window.

    System.TimeSpan window

    The duration of the window.

    Properties

    | Improve this Doc

    RateLimit

    Gets the allowed rate before throttling.

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

    The allowed rate before throttling.

    | Improve this Doc

    Window

    Gets the allowed window duration before throttling.

    Declaration
    public TimeSpan Window { get; }
    Property Value
    Type Description
    System.TimeSpan

    The allowed window duration before throttling.

    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