{"action":"opened","issue":{"url":"https://api.github.com/repos/Chatham/Vault.NET/issues/19","repository_url":"https://api.github.com/repos/Chatham/Vault.NET","labels_url":"https://api.github.com/repos/Chatham/Vault.NET/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Chatham/Vault.NET/issues/19/comments","events_url":"https://api.github.com/repos/Chatham/Vault.NET/issues/19/events","html_url":"https://github.com/Chatham/Vault.NET/issues/19","id":321509078,"number":19,"title":"VaultHttpClient is not thread safe","user":{"login":"amitisss","id":22349736,"avatar_url":"https://avatars2.githubusercontent.com/u/22349736?v=4","gravatar_id":"","url":"https://api.github.com/users/amitisss","html_url":"https://github.com/amitisss","followers_url":"https://api.github.com/users/amitisss/followers","following_url":"https://api.github.com/users/amitisss/following{/other_user}","gists_url":"https://api.github.com/users/amitisss/gists{/gist_id}","starred_url":"https://api.github.com/users/amitisss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitisss/subscriptions","organizations_url":"https://api.github.com/users/amitisss/orgs","repos_url":"https://api.github.com/users/amitisss/repos","events_url":"https://api.github.com/users/amitisss/events{/privacy}","received_events_url":"https://api.github.com/users/amitisss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T10:05:42Z","updated_at":"2018-05-09T10:05:42Z","closed_at":null,"author_association":"NONE","body":"When creating **_VaultHttpClient_** in multi threaded environment an **_System.InvalidOperationException_** is thrown.\r\n\r\nPlease Refer to the attached exception log.\r\n\r\n### Steps to reproduce:\r\nInitialize **_VaultHttpClient_** in parallel using several threads.\r\n\r\n### Solution:\r\nInitialize the *_VaultHttpClient_** in a **_static block_**:\r\n\r\n        static VaultHttpClient()\r\n        {\r\n            HttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(\"application/json\"));\r\n        }\r\n"}}
{"actor":{"display_login":"amitisss"}}