C# Class WebApiThrottle.ThrottlingCore

Common code shared between ThrottlingHandler and ThrottlingFilter
Afficher le fichier Open project: stefanprodan/WebApiThrottle Class Usage Examples

Private Properties

Свойство Type Description
ApplyRules void
ComputeLogEntry WebApiThrottle.ThrottleLogEntry
ComputeThrottleKey string
ContainsIp bool
ContainsIp bool
GetClientIp System.Net.IPAddress
GetTimeSpanFromPeriod System.TimeSpan
IsWhitelisted bool
ProcessRequest WebApiThrottle.ThrottleCounter
RatesWithDefaults long>>.List
RetryAfterFrom string

Méthodes publiques

Méthode Description
ThrottlingCore ( ) : System

Private Methods

Méthode Description
ApplyRules ( RequestIdentity identity, System.TimeSpan timeSpan, RateLimitPeriod rateLimitPeriod, long &rateLimit ) : void
ComputeLogEntry ( string requestId, RequestIdentity identity, WebApiThrottle.ThrottleCounter throttleCounter, string rateLimitPeriod, long rateLimit, HttpRequestMessage request ) : WebApiThrottle.ThrottleLogEntry
ComputeThrottleKey ( RequestIdentity requestIdentity, RateLimitPeriod period ) : string
ContainsIp ( List ipRules, string clientIp ) : bool
ContainsIp ( List ipRules, string clientIp, string &rule ) : bool
GetClientIp ( HttpRequestMessage request ) : IPAddress
GetTimeSpanFromPeriod ( RateLimitPeriod rateLimitPeriod ) : System.TimeSpan
IsWhitelisted ( RequestIdentity requestIdentity ) : bool
ProcessRequest ( RequestIdentity requestIdentity, System.TimeSpan timeSpan, RateLimitPeriod period, string &id ) : WebApiThrottle.ThrottleCounter
RatesWithDefaults ( long>.List defRates ) : long>>.List
RetryAfterFrom ( System.DateTime timestamp, RateLimitPeriod period ) : string

Method Details

ThrottlingCore() public méthode

public ThrottlingCore ( ) : System
Résultat System