{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1889","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1889/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1889/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1889/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1889","id":126660391,"number":1889,"title":"Client csharp: Use System.Net.Http.HttpClient instead of RestSharp","user":{"login":"carlosduclos","id":12510941,"avatar_url":"https://avatars.githubusercontent.com/u/12510941?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosduclos","html_url":"https://github.com/carlosduclos","followers_url":"https://api.github.com/users/carlosduclos/followers","following_url":"https://api.github.com/users/carlosduclos/following{/other_user}","gists_url":"https://api.github.com/users/carlosduclos/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosduclos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosduclos/subscriptions","organizations_url":"https://api.github.com/users/carlosduclos/orgs","repos_url":"https://api.github.com/users/carlosduclos/repos","events_url":"https://api.github.com/users/carlosduclos/events{/privacy}","received_events_url":"https://api.github.com/users/carlosduclos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Client:%20C-Sharp","name":"Client: C-Sharp","color":"fad8c7"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Feature","name":"Feature","color":"009800"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Need%20community%20contribution","name":"Need community contribution","color":"e3ff00"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/5","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/Future","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/5/labels","id":913962,"number":5,"title":"Future","description":"","creator":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":19,"state":"open","created_at":"2014-12-24T05:48:44Z","updated_at":"2016-01-15T03:17:23Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-14T14:03:50Z","updated_at":"2016-01-15T07:40:49Z","closed_at":null,"body":"Hi,\r\nHttpClient comes with the system and it is very feature rich. It would be nice for the generator to be able to generate code that uses HttpClient instead of RestSharp. That way there will be one less external dependency.\r\nI'm willing to write the code if nobody else is doing it.\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/171894105","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1889#issuecomment-171894105","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1889","id":171894105,"user":{"login":"carlosduclos","id":12510941,"avatar_url":"https://avatars.githubusercontent.com/u/12510941?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosduclos","html_url":"https://github.com/carlosduclos","followers_url":"https://api.github.com/users/carlosduclos/followers","following_url":"https://api.github.com/users/carlosduclos/following{/other_user}","gists_url":"https://api.github.com/users/carlosduclos/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosduclos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosduclos/subscriptions","organizations_url":"https://api.github.com/users/carlosduclos/orgs","repos_url":"https://api.github.com/users/carlosduclos/repos","events_url":"https://api.github.com/users/carlosduclos/events{/privacy}","received_events_url":"https://api.github.com/users/carlosduclos/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T07:40:49Z","updated_at":"2016-01-15T07:40:49Z","body":"I'm thinking of something similar by using reflection and loading the available library. Having a public static method that creates the ApiClient object. I'll prepare a short sample and I'll post it here."}}