{"action":"closed","issue":{"url":"https://api.github.com/repos/stefanprodan/WebApiThrottle/issues/86","repository_url":"https://api.github.com/repos/stefanprodan/WebApiThrottle","labels_url":"https://api.github.com/repos/stefanprodan/WebApiThrottle/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/stefanprodan/WebApiThrottle/issues/86/comments","events_url":"https://api.github.com/repos/stefanprodan/WebApiThrottle/issues/86/events","html_url":"https://github.com/stefanprodan/WebApiThrottle/issues/86","id":198119143,"number":86,"title":"using URL Segment in Endpoint custom rate limit does not seem to work","user":{"login":"mmsundaram","id":12784177,"avatar_url":"https://avatars.githubusercontent.com/u/12784177?v=3","gravatar_id":"","url":"https://api.github.com/users/mmsundaram","html_url":"https://github.com/mmsundaram","followers_url":"https://api.github.com/users/mmsundaram/followers","following_url":"https://api.github.com/users/mmsundaram/following{/other_user}","gists_url":"https://api.github.com/users/mmsundaram/gists{/gist_id}","starred_url":"https://api.github.com/users/mmsundaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmsundaram/subscriptions","organizations_url":"https://api.github.com/users/mmsundaram/orgs","repos_url":"https://api.github.com/users/mmsundaram/repos","events_url":"https://api.github.com/users/mmsundaram/events{/privacy}","received_events_url":"https://api.github.com/users/mmsundaram/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-30T08:34:14Z","updated_at":"2016-12-30T09:17:36Z","closed_at":"2016-12-30T09:17:36Z","body":"Hi @stefanprodan .! \r\n\r\nThanks a lot for putting up such an awesome library online. \r\n\r\nI was trying to use REDIS cache to store the policy and the metrics and was able to do that just by following the inputs on the readme. Wonderfully written.! :) I can add those repository files and the handler config here if you think that might be useful. \r\n\r\nThen I had a scenario that I will have Path Params in my request. I was trying to implement Endpoint custom rate limit based on URL segment Just like in readme but couldn't get it to work.  Am I missing something.? \r\n\r\nHere is my configuration : \r\n`throttlePolicy = new ThrottlePolicy(perDay: 5)\r\n{\r\nClientThrottling = true,\r\n                    EndpointThrottling = true,\r\n                    ClientWhitelist = new List<string>(){ \"ADMIN-API-KEY\" },\r\n                    EndpointRules = new Dictionary<string, RateLimits> {\r\n                        {\"/agents/\", new RateLimits {PerDay = 0}},\r\n                        {\"/properties/\", new RateLimits {PerDay = 1}},\r\n                        {\"/data/\", new RateLimits {PerDay = 1}},\r\n                        {\"/routing/\", new RateLimits {PerDay = 1}},\r\n                        {\"/singapore/\", new RateLimits {PerDay = 1}},\r\n                        {\"/places/\", new RateLimits {PerDay = 1}},\r\n                        {\"/units/\", new RateLimits {PerDay = 1}}\r\n                        }\r\n                };`\r\n\r\nThanks.!\r\nMeenakshi Sundaram"}}
{"actor":{"display_login":"mmsundaram"}}