Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Configurable filter per API from configuration file #135

Open
giladsu opened this issue Feb 5, 2020 · 1 comment
Open

Configurable filter per API from configuration file #135

giladsu opened this issue Feb 5, 2020 · 1 comment

Comments

@giladsu
Copy link

giladsu commented Feb 5, 2020

IIUC, filters per API are configurable using the EnableThrottling attribute.
Is there a way to configure this from a configuration file?

Seems like defining a new attribute that derives from EnableThrottling and reads from a config file in the ctor would work, but is there a different way.

@javafun
Copy link

javafun commented Feb 25, 2020

@giladsu Is this what you need?

https://github.com/stefanprodan/WebApiThrottle#define-rate-limits-in-webconfig-or-appconfig

You can use rule instead of attribute

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants