Inheritance: IIpAddressParser
Example #1
0
 /// <summary>
 /// Creates a new instance of the <see cref="ThrottlingHandler"/> class.
 /// By default, the <see cref="QuotaExceededResponseCode"/> property
 /// is set to 429 (Too Many Requests).
 /// </summary>
 public ThrottlingFilter()
 {
     QuotaExceededResponseCode = (HttpStatusCode)429;
     Repository      = new CacheRepository();
     IpAddressParser = new IpAddressParser();
 }
 /// <summary>
 /// Creates a new instance of the <see cref="ThrottlingHandler"/> class.
 /// By default, the <see cref="QuotaExceededResponseCode"/> property 
 /// is set to 429 (Too Many Requests).
 /// </summary>
 public ThrottlingFilter()
 {
     QuotaExceededResponseCode = (HttpStatusCode)429;
     Repository = new CacheRepository();
     IpAddressParser = new IpAddressParser();
 }