{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/1689","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/1689/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/1689/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/1689/events","html_url":"https://github.com/aspnet/Mvc/issues/1689","id":51496358,"number":1689,"title":"MVC Tag Helpers Options objects","user":{"login":"DamianEdwards","id":249088,"avatar_url":"https://avatars.githubusercontent.com/u/249088?v=3","gravatar_id":"","url":"https://api.github.com/users/DamianEdwards","html_url":"https://github.com/DamianEdwards","followers_url":"https://api.github.com/users/DamianEdwards/followers","following_url":"https://api.github.com/users/DamianEdwards/following{/other_user}","gists_url":"https://api.github.com/users/DamianEdwards/gists{/gist_id}","starred_url":"https://api.github.com/users/DamianEdwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamianEdwards/subscriptions","organizations_url":"https://api.github.com/users/DamianEdwards/orgs","repos_url":"https://api.github.com/users/DamianEdwards/repos","events_url":"https://api.github.com/users/DamianEdwards/events{/privacy}","received_events_url":"https://api.github.com/users/DamianEdwards/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/aspnet/Mvc/labels/TagHelpers","name":"TagHelpers","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"DamianEdwards","id":249088,"avatar_url":"https://avatars.githubusercontent.com/u/249088?v=3","gravatar_id":"","url":"https://api.github.com/users/DamianEdwards","html_url":"https://github.com/DamianEdwards","followers_url":"https://api.github.com/users/DamianEdwards/followers","following_url":"https://api.github.com/users/DamianEdwards/following{/other_user}","gists_url":"https://api.github.com/users/DamianEdwards/gists{/gist_id}","starred_url":"https://api.github.com/users/DamianEdwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamianEdwards/subscriptions","organizations_url":"https://api.github.com/users/DamianEdwards/orgs","repos_url":"https://api.github.com/users/DamianEdwards/repos","events_url":"https://api.github.com/users/DamianEdwards/events{/privacy}","received_events_url":"https://api.github.com/users/DamianEdwards/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/14","html_url":"https://github.com/aspnet/Mvc/milestones/6.0.0-rc1","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/14/labels","id":929400,"number":14,"title":"6.0.0-rc1","description":"","creator":{"login":"danroth27","id":1874516,"avatar_url":"https://avatars.githubusercontent.com/u/1874516?v=3","gravatar_id":"","url":"https://api.github.com/users/danroth27","html_url":"https://github.com/danroth27","followers_url":"https://api.github.com/users/danroth27/followers","following_url":"https://api.github.com/users/danroth27/following{/other_user}","gists_url":"https://api.github.com/users/danroth27/gists{/gist_id}","starred_url":"https://api.github.com/users/danroth27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danroth27/subscriptions","organizations_url":"https://api.github.com/users/danroth27/orgs","repos_url":"https://api.github.com/users/danroth27/repos","events_url":"https://api.github.com/users/danroth27/events{/privacy}","received_events_url":"https://api.github.com/users/danroth27/received_events","type":"User","site_admin":false},"open_issues":84,"closed_issues":143,"state":"open","created_at":"2015-01-09T23:08:53Z","updated_at":"2015-03-12T01:06:00Z","due_on":"2015-03-23T07:00:00Z","closed_at":null},"comments":6,"created_at":"2014-12-09T23:16:55Z","updated_at":"2015-03-12T01:06:00Z","closed_at":"2015-03-12T01:06:00Z","body":"All MVC Tag Helpers should have corresponding options objects to allow applications to globally set default runtime behavior. Each Tag Helper should have its own options object defined along with a `Configure[Name]` extension method. \r\n\r\n### Example\r\nThe `FormTagHelper` should have an options object somewhat like the following defined:\r\n``` C#\r\nnamespace Microsoft.AspNet.Mvc.TagHelpers {\r\n    public class FormTagHelperOptions {\r\n        /// <summary>\r\n        /// A bool that indicates whether the anti-forgery token should be generated.\r\n        /// </summary>\r\n        /// <value>Defaults to <c>null</c>, which indicates a token will only be generated if the <c>action</c> attribute was not explicitly defined.</value>\r\n        public bool? AntiForgery { get; set; }\r\n    }\r\n}\r\n```\r\n\r\nThe `FormTagHelper` itself should be updated to retrieve this options object from the DI system and use it to determine default behavior.\r\n\r\nThe corresponding configure helper extension method that would just call through to `Configure<FormTagHelperOptions>`:\r\n``` C#\r\npublic static IServicesCollection ConfigureFormTagHelper(Action<FormTagHelperOptions> configureCallback)\r\n```"}}