Skip to content

Declarative limits #2

@jezzsantos

Description

@jezzsantos

Hi Scott,

I am very tempted to use this plugin, but what is stopping me is that Id much rather declaratively set my limits on each operation/dto as an attribute, instead of in configuration settings.

Something like this in a service:

[LimitRate(5, 1)]
[LimitRate(15, 60)]
[LimitRate(100, 3600)]
public MyDtoReponse Post (MyDto request)
{
...
}

(Using the same rate limit set you demonstrate in the readme)

Is there some way to extend what you have to support this?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions