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

Commit

Permalink
Merge pull request #38 from BrightSoul/master
Browse files Browse the repository at this point in the history
IpRules, ClientRules and EndpointRules are now of type IDictionary<string, RateLimits>
  • Loading branch information
stefanprodan committed Oct 9, 2015
2 parents fc6d31d + 758b1ce commit a950726
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WebApiThrottle/ThrottlePolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public ThrottlePolicy(long? perSecond = null, long? perMinute = null, long? perH

public List<string> IpWhitelist { get; set; }

public Dictionary<string, RateLimits> IpRules { get; set; }
public IDictionary<string, RateLimits> IpRules { get; set; }

/// <summary>
/// Gets or sets a value indicating whether client key throttling is enabled.
Expand All @@ -73,7 +73,7 @@ public ThrottlePolicy(long? perSecond = null, long? perMinute = null, long? perH

public List<string> ClientWhitelist { get; set; }

public Dictionary<string, RateLimits> ClientRules { get; set; }
public IDictionary<string, RateLimits> ClientRules { get; set; }

/// <summary>
/// Gets or sets a value indicating whether route throttling is enabled
Expand All @@ -82,7 +82,7 @@ public ThrottlePolicy(long? perSecond = null, long? perMinute = null, long? perH

public List<string> EndpointWhitelist { get; set; }

public Dictionary<string, RateLimits> EndpointRules { get; set; }
public IDictionary<string, RateLimits> EndpointRules { get; set; }

/// <summary>
/// Gets or sets a value indicating whether all requests, including the rejected ones, should be stacked in this order: day, hour, min, sec
Expand Down

0 comments on commit a950726

Please sign in to comment.