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

Commit

Permalink
Fix: Setting ThrottlePolicy.Rates to public
Browse files Browse the repository at this point in the history
This allows policies to properly serialize and be deserialized.
  • Loading branch information
dmarlow committed Jul 31, 2017
1 parent abde47c commit 48871bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebApiThrottle/ThrottlePolicy.cs
Expand Up @@ -89,7 +89,7 @@ public ThrottlePolicy(long? perSecond = null, long? perMinute = null, long? perH
/// </summary>
public bool StackBlockedRequests { get; set; }

internal Dictionary<RateLimitPeriod, long> Rates { get; set; }
public Dictionary<RateLimitPeriod, long> Rates { get; set; }

public static ThrottlePolicy FromStore(IThrottlePolicyProvider provider)
{
Expand Down

0 comments on commit 48871bb

Please sign in to comment.