summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer/SampleWcf.aspx.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-05-08 07:43:13 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-05-08 07:43:13 -0700
commit3a5a761063327f919d72d04e47968c8556a6fd36 (patch)
tree962b5692889ff320985c3862b08a1527798a116f /samples/OAuthConsumer/SampleWcf.aspx.cs
parent1be3ed304dcf79725ca099f8df54a601c26e145b (diff)
downloadDotNetOpenAuth-3a5a761063327f919d72d04e47968c8556a6fd36.zip
DotNetOpenAuth-3a5a761063327f919d72d04e47968c8556a6fd36.tar.gz
DotNetOpenAuth-3a5a761063327f919d72d04e47968c8556a6fd36.tar.bz2
StyleCop fixes.
Diffstat (limited to 'samples/OAuthConsumer/SampleWcf.aspx.cs')
-rw-r--r--samples/OAuthConsumer/SampleWcf.aspx.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/samples/OAuthConsumer/SampleWcf.aspx.cs b/samples/OAuthConsumer/SampleWcf.aspx.cs
index 4055c6c..489e294 100644
--- a/samples/OAuthConsumer/SampleWcf.aspx.cs
+++ b/samples/OAuthConsumer/SampleWcf.aspx.cs
@@ -26,7 +26,7 @@
var accessTokenMessage = consumer.ProcessUserAuthorization();
if (accessTokenMessage != null) {
Session["WcfAccessToken"] = accessTokenMessage.AccessToken;
- authorizationLabel.Text = "Authorized! Access token: " + accessTokenMessage.AccessToken;
+ this.authorizationLabel.Text = "Authorized! Access token: " + accessTokenMessage.AccessToken;
}
}
}
@@ -36,7 +36,7 @@
WebConsumer consumer = this.CreateConsumer();
UriBuilder callback = new UriBuilder(Request.Url);
callback.Query = null;
- string[] scopes = (from item in scopeList.Items.OfType<ListItem>()
+ string[] scopes = (from item in this.scopeList.Items.OfType<ListItem>()
where item.Selected
select item.Value).ToArray();
string scope = string.Join("|", scopes);
@@ -49,27 +49,27 @@
protected void getNameButton_Click(object sender, EventArgs e) {
try {
- nameLabel.Text = CallService(client => client.GetName());
+ this.nameLabel.Text = CallService(client => client.GetName());
} catch (SecurityAccessDeniedException) {
- nameLabel.Text = "Access denied!";
+ this.nameLabel.Text = "Access denied!";
}
}
protected void getAgeButton_Click(object sender, EventArgs e) {
try {
int? age = CallService(client => client.GetAge());
- ageLabel.Text = age.HasValue ? age.Value.ToString(CultureInfo.CurrentCulture) : "not available";
+ this.ageLabel.Text = age.HasValue ? age.Value.ToString(CultureInfo.CurrentCulture) : "not available";
} catch (SecurityAccessDeniedException) {
- ageLabel.Text = "Access denied!";
+ this.ageLabel.Text = "Access denied!";
}
}
protected void getFavoriteSites_Click(object sender, EventArgs e) {
try {
string[] favoriteSites = CallService(client => client.GetFavoriteSites());
- favoriteSitesLabel.Text = string.Join(", ", favoriteSites);
+ this.favoriteSitesLabel.Text = string.Join(", ", favoriteSites);
} catch (SecurityAccessDeniedException) {
- favoriteSitesLabel.Text = "Access denied!";
+ this.favoriteSitesLabel.Text = "Access denied!";
}
}