You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
Thanks for a great tool, and thanks for making it public.
I would like to have a default rate limit for clients with no pre-defined rules.
This is normally achievable by specifying the global rules in the constructor on ThrottlePolicy.
However, when I use an implementation of IPolicyRepositoryfor this, in which I serialise the object, these global settings (Stored in the internal property Rates) are not serialised, and are of course lost when the policy is re-loaded from the repository.
The immediate fix that springs to mind is to make the Rates property public, but I'm not sure what the intention was to make it internal.
Perhaps I am missing something - can anyone help?
Cheers,
Matt
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello Stefan,
Thanks for a great tool, and thanks for making it public.
I would like to have a default rate limit for clients with no pre-defined rules.
This is normally achievable by specifying the global rules in the constructor on ThrottlePolicy.
However, when I use an implementation of IPolicyRepositoryfor this, in which I serialise the object, these global settings (Stored in the internal property Rates) are not serialised, and are of course lost when the policy is re-loaded from the repository.
The immediate fix that springs to mind is to make the Rates property public, but I'm not sure what the intention was to make it internal.
Perhaps I am missing something - can anyone help?
Cheers,
Matt
The text was updated successfully, but these errors were encountered: