{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure-Samples/active-directory-javascript-singlepageapp-dotnet-webapi-v2/issues/11","repository_url":"https://api.github.com/repos/Azure-Samples/active-directory-javascript-singlepageapp-dotnet-webapi-v2","labels_url":"https://api.github.com/repos/Azure-Samples/active-directory-javascript-singlepageapp-dotnet-webapi-v2/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Azure-Samples/active-directory-javascript-singlepageapp-dotnet-webapi-v2/issues/11/comments","events_url":"https://api.github.com/repos/Azure-Samples/active-directory-javascript-singlepageapp-dotnet-webapi-v2/issues/11/events","html_url":"https://github.com/Azure-Samples/active-directory-javascript-singlepageapp-dotnet-webapi-v2/issues/11","id":384040260,"node_id":"MDU6SXNzdWUzODQwNDAyNjA=","number":11,"title":"_configManager.GetConfigurationAsync().Result causing deadlock situation in OpenIdConnectCachingSecurityTokenProvider.cs file","user":{"login":"Chandu12x","id":31477143,"node_id":"MDQ6VXNlcjMxNDc3MTQz","avatar_url":"https://avatars0.githubusercontent.com/u/31477143?v=4","gravatar_id":"","url":"https://api.github.com/users/Chandu12x","html_url":"https://github.com/Chandu12x","followers_url":"https://api.github.com/users/Chandu12x/followers","following_url":"https://api.github.com/users/Chandu12x/following{/other_user}","gists_url":"https://api.github.com/users/Chandu12x/gists{/gist_id}","starred_url":"https://api.github.com/users/Chandu12x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chandu12x/subscriptions","organizations_url":"https://api.github.com/users/Chandu12x/orgs","repos_url":"https://api.github.com/users/Chandu12x/repos","events_url":"https://api.github.com/users/Chandu12x/events{/privacy}","received_events_url":"https://api.github.com/users/Chandu12x/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-25T02:19:42Z","updated_at":"2018-11-25T02:19:42Z","closed_at":null,"author_association":"NONE","body":"Below code is like calling an async method in sync context which is a bad practice and causing deadlock with infinite loops.\r\n\r\n            _synclock.EnterWriteLock();  --> synchronous lock\r\n\r\n                OpenIdConnectConfiguration config = _configManager.GetConfigurationAsync().Result;  --> async method\r\n\r\nCould you please update the above code as below to avoid a deadlock situation.\r\n\r\n                OpenIdConnectConfiguration config =Task.Run( _configManager.GetConfigurationAsync).Result;\r\n"}}
{"actor":{"display_login":"Chandu12x"}}