/// <summary> /// Initializes a new instance of the <see cref="ThrottlingMiddleware"/> class. /// By default, the <see cref="QuotaExceededResponseCode"/> property /// is set to 429 (Too Many Requests). /// </summary> public ThrottlingMiddleware(OwinMiddleware next) : base(next) { QuotaExceededResponseCode = (HttpStatusCode)429; Repository = new CacheRepository(); core = new ThrottlingCore(); }
/// <summary> /// Initializes a new instance of the <see cref="ThrottlingFilter"/> class. /// By default, the <see cref="QuotaExceededResponseCode"/> property /// is set to 429 (Too Many Requests). /// </summary> public ThrottlingFilter() { QuotaExceededResponseCode = (HttpStatusCode)429; Repository = new CacheRepository(); core = new ThrottlingCore(); }
/// <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 ThrottlingHandler() { QuotaExceededResponseCode = (HttpStatusCode)429; Repository = new CacheRepository(); }
/// <summary> /// Initializes a new instance of the <see cref="ThrottlingFilter"/> class. /// By default, the <see cref="QuotaExceededResponseCode"/> property /// is set to 429 (Too Many Requests). /// </summary> public ThrottlingFilter() { QuotaExceededResponseCode = (HttpStatusCode)429; Repository = new CacheRepository(); core = new ThrottlingCore(); }