C# Class WebApiThrottle.WebApiDemo.Helpers.CustomThrottlingFilter

Inheritance: ThrottlingFilter
Show file Open project: stefanprodan/WebApiThrottle

Public Methods

Method Description
CustomThrottlingFilter ( ThrottlePolicy policy, IPolicyRepository policyRepository, IThrottleRepository repository, IThrottleLogger logger ) : System

Protected Methods

Method Description
QuotaExceededResponse ( HttpRequestMessage request, object content, HttpStatusCode responseCode, string retryAfter ) : HttpResponseMessage
SetIdentity ( HttpRequestMessage request ) : RequestIdentity

Method Details

CustomThrottlingFilter() public method

public CustomThrottlingFilter ( ThrottlePolicy policy, IPolicyRepository policyRepository, IThrottleRepository repository, IThrottleLogger logger ) : System
policy ThrottlePolicy
policyRepository IPolicyRepository
repository IThrottleRepository
logger IThrottleLogger
return System

QuotaExceededResponse() protected method

protected QuotaExceededResponse ( HttpRequestMessage request, object content, HttpStatusCode responseCode, string retryAfter ) : HttpResponseMessage
request System.Net.Http.HttpRequestMessage
content object
responseCode HttpStatusCode
retryAfter string
return System.Net.Http.HttpResponseMessage

SetIdentity() protected method

protected SetIdentity ( HttpRequestMessage request ) : RequestIdentity
request System.Net.Http.HttpRequestMessage
return RequestIdentity