ConfigureAwait(false) is missing on awaitable calls. This can lead to deadlocks when using those methods.
Therefore it would be good if this could be added like in DropboxRestApi
Is it possble to report a progress using current implementation (HttpClient)? I guess it is possible using WebClient and it's built-in progress events, but it will take a lot of time to rewrite current code to use WebClient...Thanks in advance.
// TODO: Navigate to authRequestUrl using the browser, and retrieve the Authorization Code from the response
var authCode = await GetAuthCode(client, new[] { Scope.Signin, Scope.Basic, Scope.SkyDrive });
Anymethod available for automaticly taking the authentication code from the redirect url and substitute it in the
// TODO: Navigate to authRequestUrl using the browser, and retrieve the Authorization Code from the response
var authCode = "...";
I tried the to do as follow:
HttpClient theClient = new HttpClient();
HttpResponseMessage response = await theClient.GetAsync(authRequestUrl);
response.EnsureSuccessStatusCode();
string responseUri = response.RequestMessage.RequestUri.ToString();
Console.Out.WriteLine(responseUri);
var authCode = ; // here i made a substring from the response uri to take the code