Configurable filter per API from configuration file
giladsu opened this issue · comments
giladsu commented
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.
Vincent commented
@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