Méthode | Description | |
---|---|---|
Invoke ( IOwinContext context ) : System.Threading.Tasks.Task | ||
ThrottlingMiddleware ( Microsoft.Owin.OwinMiddleware next ) : Microsoft.Owin |
Initializes a new instance of the ThrottlingMiddleware class. By default, the QuotaExceededResponseCode property is set to 429 (Too Many Requests).
|
|
ThrottlingMiddleware ( Microsoft.Owin.OwinMiddleware next, WebApiThrottle.ThrottlePolicy policy, IPolicyRepository policyRepository, IThrottleRepository repository, IThrottleLogger logger, IIpAddressParser ipAddressParser ) : Microsoft.Owin |
Initializes a new instance of the ThrottlingMiddleware class. Persists the policy object in cache using IPolicyRepository implementation. The policy object can be updated by ThrottleManager at runtime.
|
Méthode | Description | |
---|---|---|
ComputeThrottleKey ( |
||
SetIdentity ( IOwinRequest request ) : |
protected ComputeThrottleKey ( |
||
requestIdentity | ||
period | RateLimitPeriod | |
Résultat | string |
public Invoke ( IOwinContext context ) : System.Threading.Tasks.Task | ||
context | IOwinContext | |
Résultat | System.Threading.Tasks.Task |
protected SetIdentity ( IOwinRequest request ) : |
||
request | IOwinRequest | |
Résultat |
public ThrottlingMiddleware ( Microsoft.Owin.OwinMiddleware next ) : Microsoft.Owin | ||
next | Microsoft.Owin.OwinMiddleware | |
Résultat | Microsoft.Owin |
public ThrottlingMiddleware ( Microsoft.Owin.OwinMiddleware next, WebApiThrottle.ThrottlePolicy policy, IPolicyRepository policyRepository, IThrottleRepository repository, IThrottleLogger logger, IIpAddressParser ipAddressParser ) : Microsoft.Owin | ||
next | Microsoft.Owin.OwinMiddleware | |
policy | WebApiThrottle.ThrottlePolicy | /// The policy. /// |
policyRepository | IPolicyRepository | /// The policy repository. /// |
repository | IThrottleRepository | /// The repository. /// |
logger | IThrottleLogger | /// The logger. /// |
ipAddressParser | IIpAddressParser | /// The IpAddressParser /// |
Résultat | Microsoft.Owin |