C# 클래스 WebApiThrottle.ThrottlingCore

Common code shared between ThrottlingHandler and ThrottlingFilter
파일 보기 프로젝트 열기: stefanprodan/WebApiThrottle 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
ThrottlingCore ( ) : System

비공개 메소드들

메소드 설명
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

메소드 상세

ThrottlingCore() 공개 메소드

public ThrottlingCore ( ) : System
리턴 System