public Task <AuthorizeResponse> RequestTokenAsync(string scope, string responseType) { LoginWebView webview = null; var task = StartSTATask <AuthorizeResponse>(() => { Application app = new Application(); webview = new LoginWebView(); webview.RequestToken(m_clientId, m_authorizeEndpoint, scope, responseType, m_callback); app.Run(webview); return(webview.Completion.Result); }); return(task); }