summaryrefslogtreecommitdiffstats
path: root/samples/OAuthClient/Google.aspx.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-05-27 09:46:47 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-05-27 09:46:47 -0700
commit7fda43b0eece0204231bfbda881ada7e8fbb035b (patch)
tree105a74788a5849b0fbf827df094aa2f9d876cd50 /samples/OAuthClient/Google.aspx.cs
parent5a0a8ee4c55f323a6c1fbdb619cd89b7d28a94ba (diff)
downloadDotNetOpenAuth-7fda43b0eece0204231bfbda881ada7e8fbb035b.zip
DotNetOpenAuth-7fda43b0eece0204231bfbda881ada7e8fbb035b.tar.gz
DotNetOpenAuth-7fda43b0eece0204231bfbda881ada7e8fbb035b.tar.bz2
Made AppBlock GetGraph methods async
Diffstat (limited to 'samples/OAuthClient/Google.aspx.cs')
-rw-r--r--samples/OAuthClient/Google.aspx.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/samples/OAuthClient/Google.aspx.cs b/samples/OAuthClient/Google.aspx.cs
index 7d0c77e..e0c4941 100644
--- a/samples/OAuthClient/Google.aspx.cs
+++ b/samples/OAuthClient/Google.aspx.cs
@@ -5,11 +5,9 @@
using System.Net;
using System.Web;
using System.Web.UI;
-
using DotNetOpenAuth.ApplicationBlock;
- using DotNetOpenAuth.OAuth2;
-
using DotNetOpenAuth.Messaging;
+ using DotNetOpenAuth.OAuth2;
public partial class Google : System.Web.UI.Page
{
@@ -33,7 +31,7 @@
// alternatively you can ask for more information
// googleClient.RequestUserAuthorization(scope: new[] { GoogleClient.Scopes.UserInfo.Profile, GoogleClient.Scopes.UserInfo.Email });
} else {
- IOAuth2Graph oauth2Graph = googleClient.GetGraph(authorization);
+ IOAuth2Graph oauth2Graph = await googleClient.GetGraphAsync(authorization, cancellationToken: ct);
this.nameLabel.Text = HttpUtility.HtmlEncode(oauth2Graph.Name);
}