summaryrefslogtreecommitdiffstats
path: root/samples/OAuthClient/SampleWcf2.aspx.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OAuthClient/SampleWcf2.aspx.cs')
-rw-r--r--samples/OAuthClient/SampleWcf2.aspx.cs2
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));
}