Skip to content
This repository was archived by the owner on Mar 20, 2019. It is now read-only.

Commit 351ecb6

Browse files
committed
Applied all the StyleCop fixes necessary by the StyleCop 4.7 upgrade.
1 parent 9615b7b commit 351ecb6

File tree

76 files changed

+980
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+980
-281
lines changed

projecttemplates/MvcRelyingParty/Controllers/AuthController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public ActionResult LogOnPostAssertion(string openid_openidAuthData) {
134134
var token = RelyingPartyLogic.User.ProcessUserLogin(response);
135135
this.FormsAuth.SignIn(token.ClaimedIdentifier, false);
136136
string returnUrl = Request.Form["returnUrl"];
137-
if (!String.IsNullOrEmpty(returnUrl)) {
137+
if (!string.IsNullOrEmpty(returnUrl)) {
138138
return Redirect(returnUrl);
139139
} else {
140140
return RedirectToAction("Index", "Home");

projecttemplates/RelyingPartyLogic/Utilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static int ExecuteCommand(this ObjectContext objectContext, EntityTransac
112112
if (objectContext == null) {
113113
throw new ArgumentNullException("objectContext");
114114
}
115-
if (String.IsNullOrEmpty(command)) {
115+
if (string.IsNullOrEmpty(command)) {
116116
throw new ArgumentNullException("command");
117117
}
118118

samples/DotNetOpenAuth.ApplicationBlock/Facebook/FacebookGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class FacebookGraph {
3636
public string Birthday { get; set; }
3737

3838
public static FacebookGraph Deserialize(string json) {
39-
if (String.IsNullOrEmpty(json)) {
39+
if (string.IsNullOrEmpty(json)) {
4040
throw new ArgumentNullException("json");
4141
}
4242

samples/DotNetOpenAuth.ApplicationBlock/InMemoryTokenManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal class InMemoryTokenManager : IConsumerTokenManager, IOpenIdOAuthTokenMa
3131
/// <param name="consumerKey">The consumer key.</param>
3232
/// <param name="consumerSecret">The consumer secret.</param>
3333
public InMemoryTokenManager(string consumerKey, string consumerSecret) {
34-
if (String.IsNullOrEmpty(consumerKey)) {
34+
if (string.IsNullOrEmpty(consumerKey)) {
3535
throw new ArgumentNullException("consumerKey");
3636
}
3737

@@ -136,7 +136,7 @@ public TokenType GetTokenType(string token) {
136136
/// send a follow-up request for the access token.</para>
137137
/// </remarks>
138138
public void StoreOpenIdAuthorizedRequestToken(string consumerKey, AuthorizationApprovedResponse authorization) {
139-
this.tokensAndSecrets[authorization.RequestToken] = String.Empty;
139+
this.tokensAndSecrets[authorization.RequestToken] = string.Empty;
140140
}
141141

142142
#endregion

samples/OAuthAuthorizationServer/Code/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bool IClientDescription.IsCallbackAllowed(Uri callback) {
5252
// In this sample, it's enough of a callback URL match if the scheme and host match.
5353
// In a production app, it is advisable to require a match on the path as well.
5454
Uri acceptableCallbackPattern = new Uri(this.Callback);
55-
if (String.Equals(acceptableCallbackPattern.GetLeftPart(UriPartial.Authority), callback.GetLeftPart(UriPartial.Authority), StringComparison.Ordinal)) {
55+
if (string.Equals(acceptableCallbackPattern.GetLeftPart(UriPartial.Authority), callback.GetLeftPart(UriPartial.Authority), StringComparison.Ordinal)) {
5656
return true;
5757
}
5858

samples/OAuthAuthorizationServer/Code/DataClasses.designer.cs

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/OAuthAuthorizationServer/Web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</log4net>
6666

6767
<connectionStrings>
68-
<add name="DatabaseConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"
68+
<add name="DatabaseConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database2.mdf;Integrated Security=True;User Instance=True"
6969
providerName="System.Data.SqlClient" />
7070
</connectionStrings>
7171

samples/OAuthClient/SampleWcf2.aspx.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ where item.Selected
8484

8585
protected void getNameButton_Click(object sender, EventArgs e) {
8686
try {
87-
this.nameLabel.Text = CallService(client => client.GetName());
87+
this.nameLabel.Text = this.CallService(client => client.GetName());
8888
} catch (SecurityAccessDeniedException) {
8989
this.nameLabel.Text = "Access denied!";
9090
}
9191
}
9292

9393
protected void getAgeButton_Click(object sender, EventArgs e) {
9494
try {
95-
int? age = CallService(client => client.GetAge());
95+
int? age = this.CallService(client => client.GetAge());
9696
this.ageLabel.Text = age.HasValue ? age.Value.ToString(CultureInfo.CurrentCulture) : "not available";
9797
} catch (SecurityAccessDeniedException) {
9898
this.ageLabel.Text = "Access denied!";
@@ -101,7 +101,7 @@ protected void getAgeButton_Click(object sender, EventArgs e) {
101101

102102
protected void getFavoriteSites_Click(object sender, EventArgs e) {
103103
try {
104-
string[] favoriteSites = CallService(client => client.GetFavoriteSites());
104+
string[] favoriteSites = this.CallService(client => client.GetFavoriteSites());
105105
this.favoriteSitesLabel.Text = string.Join(", ", favoriteSites);
106106
} catch (SecurityAccessDeniedException) {
107107
this.favoriteSitesLabel.Text = "Access denied!";

samples/OAuthClient/WindowsLive.aspx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public partial class WindowsLive : System.Web.UI.Page {
1818
};
1919

2020
protected void Page_Load(object sender, EventArgs e) {
21-
if (String.Equals("localhost", this.Request.Headers["Host"].Split(':')[0], StringComparison.OrdinalIgnoreCase)) {
21+
if (string.Equals("localhost", this.Request.Headers["Host"].Split(':')[0], StringComparison.OrdinalIgnoreCase)) {
2222
this.localhostDoesNotWorkPanel.Visible = true;
2323
var builder = new UriBuilder(this.publicLink.NavigateUrl);
2424
builder.Port = this.Request.Url.Port;

samples/OAuthConsumer/SampleWcf.aspx.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ where item.Selected
4949

5050
protected void getNameButton_Click(object sender, EventArgs e) {
5151
try {
52-
this.nameLabel.Text = CallService(client => client.GetName());
52+
this.nameLabel.Text = this.CallService(client => client.GetName());
5353
} catch (SecurityAccessDeniedException) {
5454
this.nameLabel.Text = "Access denied!";
5555
}
5656
}
5757

5858
protected void getAgeButton_Click(object sender, EventArgs e) {
5959
try {
60-
int? age = CallService(client => client.GetAge());
60+
int? age = this.CallService(client => client.GetAge());
6161
this.ageLabel.Text = age.HasValue ? age.Value.ToString(CultureInfo.CurrentCulture) : "not available";
6262
} catch (SecurityAccessDeniedException) {
6363
this.ageLabel.Text = "Access denied!";
@@ -66,7 +66,7 @@ protected void getAgeButton_Click(object sender, EventArgs e) {
6666

6767
protected void getFavoriteSites_Click(object sender, EventArgs e) {
6868
try {
69-
string[] favoriteSites = CallService(client => client.GetFavoriteSites());
69+
string[] favoriteSites = this.CallService(client => client.GetFavoriteSites());
7070
this.favoriteSitesLabel.Text = string.Join(", ", favoriteSites);
7171
} catch (SecurityAccessDeniedException) {
7272
this.favoriteSitesLabel.Text = "Access denied!";

0 commit comments

Comments
 (0)