public static IAppBuilder UseThrottlingForAuthenticationRequests(this IAppBuilder app, IdentityServerThrottlingOptions options) { if (app == null) { throw new ArgumentNullException(nameof(app)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } app.Use <IdentityServerThrottlingMiddleware>(options); return(app); }
public IdentityServerThrottlingMiddleware( OwinMiddleware next, IdentityServerThrottlingOptions options) : base(next) { _options = options; }