{"action":"created","issue":{"url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/49","labels_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/49/comments","events_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/49/events","html_url":"https://github.com/moonpyk/mvcdonutcaching/issues/49","id":112268391,"number":49,"title":"help,if custom RouteConfig,the 'area' parameter not work in asp.net mvc","user":{"login":"ma7x","id":1686980,"avatar_url":"https://avatars.githubusercontent.com/u/1686980?v=3","gravatar_id":"","url":"https://api.github.com/users/ma7x","html_url":"https://github.com/ma7x","followers_url":"https://api.github.com/users/ma7x/followers","following_url":"https://api.github.com/users/ma7x/following{/other_user}","gists_url":"https://api.github.com/users/ma7x/gists{/gist_id}","starred_url":"https://api.github.com/users/ma7x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ma7x/subscriptions","organizations_url":"https://api.github.com/users/ma7x/orgs","repos_url":"https://api.github.com/users/ma7x/repos","events_url":"https://api.github.com/users/ma7x/events{/privacy}","received_events_url":"https://api.github.com/users/ma7x/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-20T01:53:25Z","updated_at":"2015-10-21T01:02:03Z","closed_at":null,"body":"file:App_Start/RouteConfig.cs\r\n    \r\n\r\n```c#\r\nnamespace XXXXXXX\r\n{\r\n    public class RouteConfig\r\n    {\r\n        public static void RegisterRoutes(RouteCollection routes)\r\n        {\r\n            routes.IgnoreRoute(\"{resource}.axd/{*pathInfo}\");\r\n            routes.LowercaseUrls = true;\r\n            routes.MapRoute(\r\n               name: \"Default\",\r\n               url: \"{area}/{controller}/{action}/{id}\",\r\n                //defaults: new { controller = \"Default\", action = \"Index\", area = \"000000\", id = UrlParameter.Optional },\r\n               defaults: new { controller = \"Home\", action = \"Index\", area = \"000000\", id = UrlParameter.Optional },\r\n               constraints: new { area = @\"\\d{6}\" }\r\n            );\r\n        }\r\n    }\r\n}\r\n```\r\nthen\r\n```c#\r\n[DonutOutputCache(Duration = 300, VaryByCustom = \"area\")]\r\npublic ActionResult Index(int area)\r\n{\r\n    return View();\r\n}\r\n```\r\n\r\nthen\r\n* http://localhost/000000/home/index\r\n* http://localhost/110000/home/index\r\n\r\nit is not work,how to do?"},"comment":{"url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/comments/149749169","html_url":"https://github.com/moonpyk/mvcdonutcaching/issues/49#issuecomment-149749169","issue_url":"https://api.github.com/repos/moonpyk/mvcdonutcaching/issues/49","id":149749169,"user":{"login":"ma7x","id":1686980,"avatar_url":"https://avatars.githubusercontent.com/u/1686980?v=3","gravatar_id":"","url":"https://api.github.com/users/ma7x","html_url":"https://github.com/ma7x","followers_url":"https://api.github.com/users/ma7x/followers","following_url":"https://api.github.com/users/ma7x/following{/other_user}","gists_url":"https://api.github.com/users/ma7x/gists{/gist_id}","starred_url":"https://api.github.com/users/ma7x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ma7x/subscriptions","organizations_url":"https://api.github.com/users/ma7x/orgs","repos_url":"https://api.github.com/users/ma7x/repos","events_url":"https://api.github.com/users/ma7x/events{/privacy}","received_events_url":"https://api.github.com/users/ma7x/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T01:02:03Z","updated_at":"2015-10-21T01:02:03Z","body":"thanks reply.\r\nit's not area ,it's like id, \r\nI have many url like\r\n```\r\nhttp://localhost/000000/home/index\r\nhttp://localhost/110000/home/index\r\nhttp://localhost/210000/home/index\r\nhttp://localhost/310000/home/index\r\n...\r\nhttp://localhost/312345/home/index\r\n```\r\nyou can new webapplication and copy the routeconfig    ,\r\n[DonutOutputCache(Duration = 300, VaryByCustom = \"area\")]   to the home/index controller\r\nit is not work, change the 'area' to 'somecustomparm' is the same result"}}