{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/6161","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/6161/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/6161/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/6161/events","html_url":"https://github.com/aspnet/Mvc/issues/6161","id":222765091,"node_id":"MDU6SXNzdWUyMjI3NjUwOTE=","number":6161,"title":"Consider some convenience changes for MVC options","user":{"login":"rynowak","id":1430011,"node_id":"MDQ6VXNlcjE0MzAwMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1430011?v=4","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"labels":[{"id":905219863,"node_id":"MDU6TGFiZWw5MDUyMTk4NjM=","url":"https://api.github.com/repos/aspnet/Mvc/labels/PRI:%203%20-%20Optional","name":"PRI: 3 - Optional","color":"c5c4fd","default":false},{"id":70264662,"node_id":"MDU6TGFiZWw3MDI2NDY2Mg==","url":"https://api.github.com/repos/aspnet/Mvc/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":96169357,"node_id":"MDU6TGFiZWw5NjE2OTM1Nw==","url":"https://api.github.com/repos/aspnet/Mvc/labels/needs%20design","name":"needs design","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"dougbu","id":6431421,"node_id":"MDQ6VXNlcjY0MzE0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/6431421?v=4","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"assignees":[{"login":"dougbu","id":6431421,"node_id":"MDQ6VXNlcjY0MzE0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/6431421?v=4","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/49","html_url":"https://github.com/aspnet/Mvc/milestone/49","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/49/labels","id":3340093,"node_id":"MDk6TWlsZXN0b25lMzM0MDA5Mw==","number":49,"title":"2.2.0-preview1","description":null,"creator":{"login":"mkArtakMSFT","id":34246760,"node_id":"MDQ6VXNlcjM0MjQ2NzYw","avatar_url":"https://avatars3.githubusercontent.com/u/34246760?v=4","gravatar_id":"","url":"https://api.github.com/users/mkArtakMSFT","html_url":"https://github.com/mkArtakMSFT","followers_url":"https://api.github.com/users/mkArtakMSFT/followers","following_url":"https://api.github.com/users/mkArtakMSFT/following{/other_user}","gists_url":"https://api.github.com/users/mkArtakMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/mkArtakMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkArtakMSFT/subscriptions","organizations_url":"https://api.github.com/users/mkArtakMSFT/orgs","repos_url":"https://api.github.com/users/mkArtakMSFT/repos","events_url":"https://api.github.com/users/mkArtakMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/mkArtakMSFT/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":48,"state":"open","created_at":"2018-05-11T20:25:58Z","updated_at":"2018-06-13T16:29:17Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2017-04-19T14:51:41Z","updated_at":"2018-06-13T16:48:20Z","closed_at":null,"author_association":"MEMBER","body":"It would be really nice to be able to write:\r\n\r\n```c#\r\nservices.AddMvc(options => options.ModelBinderProviders.RemoveByType(typeof(ByteArrayModelBinderProvider));\r\n```\r\n\r\nor \r\n\r\n```c#\r\nservices.AddMvc().RemoveModelBinderProvider(typeof(ByteArrayModelBinder));\r\n```\r\n\r\nInstead of:\r\n\r\n```c#\r\nservices.AddMvc(options => options.ModelBinderProviders.Remove(options.ModelBinderProviders.OfType<ByteArrayModelBinderProvider>().Single()));\r\n```\r\n\r\nSee https://github.com/aspnet/Mvc/issues/6160#issuecomment-295296083\r\n\r\n\r\n\r\n---- \r\nThe first option would be expose a custom collection type, the second would be to just add more stuff to the `IMvcBuilder`. Either one of these could work for this scenario, but I think the builder approach could be to basically anything we want to make into a one liner."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/397007794","html_url":"https://github.com/aspnet/Mvc/issues/6161#issuecomment-397007794","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/6161","id":397007794,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzAwNzc5NA==","user":{"login":"dougbu","id":6431421,"node_id":"MDQ6VXNlcjY0MzE0MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/6431421?v=4","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T16:48:20Z","updated_at":"2018-06-13T16:48:20Z","author_association":"MEMBER","body":"@rynowak @mkArtakMSFT what \"future improvements\" is this issue tracking exactly?"}}
{"actor":{"display_login":"dougbu"}}