diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-06-27 18:45:56 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-06-27 18:45:56 -0700 |
commit | 6c77a7137545d912f8168d690c16fef815d3082c (patch) | |
tree | 446ea84b3b885ac84dc9735e769404512f9d0784 /samples/OAuthClient | |
parent | 50a7bce7798a945571189a36e7234c4a1583b024 (diff) | |
download | DotNetOpenAuth-6c77a7137545d912f8168d690c16fef815d3082c.zip DotNetOpenAuth-6c77a7137545d912f8168d690c16fef815d3082c.tar.gz DotNetOpenAuth-6c77a7137545d912f8168d690c16fef815d3082c.tar.bz2 |
A bit of public API cleanup and code consolidation in ClientBase.
Diffstat (limited to 'samples/OAuthClient')
-rw-r--r-- | samples/OAuthClient/SampleWcf2.aspx.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuthClient/SampleWcf2.aspx.cs b/samples/OAuthClient/SampleWcf2.aspx.cs index 78b46bc..64a58e7 100644 --- a/samples/OAuthClient/SampleWcf2.aspx.cs +++ b/samples/OAuthClient/SampleWcf2.aspx.cs @@ -117,7 +117,7 @@ // Refresh the access token if it expires and if its lifetime is too short to be of use.
if (Authorization.AccessTokenExpirationUtc.HasValue) {
- if (Client.RefreshToken(Authorization, TimeSpan.FromSeconds(30))) {
+ if (Client.RefreshAuthorization(Authorization, TimeSpan.FromSeconds(30))) {
TimeSpan timeLeft = Authorization.AccessTokenExpirationUtc.Value - DateTime.UtcNow;
this.authorizationLabel.Text += string.Format(CultureInfo.CurrentCulture, " - just renewed for {0} more minutes)", Math.Round(timeLeft.TotalMinutes, 1));
}
|