From 48871bb3bcac1cb283bf49b431ba031127ab37bc Mon Sep 17 00:00:00 2001 From: Dariel Marlow Date: Mon, 31 Jul 2017 12:20:41 -0700 Subject: [PATCH] Fix: Setting ThrottlePolicy.Rates to public This allows policies to properly serialize and be deserialized. --- WebApiThrottle/ThrottlePolicy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebApiThrottle/ThrottlePolicy.cs b/WebApiThrottle/ThrottlePolicy.cs index b892d19..80894f7 100644 --- a/WebApiThrottle/ThrottlePolicy.cs +++ b/WebApiThrottle/ThrottlePolicy.cs @@ -89,7 +89,7 @@ public ThrottlePolicy(long? perSecond = null, long? perMinute = null, long? perH /// public bool StackBlockedRequests { get; set; } - internal Dictionary Rates { get; set; } + public Dictionary Rates { get; set; } public static ThrottlePolicy FromStore(IThrottlePolicyProvider provider) {