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

Commit 3bc04e1

Browse files
committed
Last StyleCop fixes.
1 parent 461810c commit 3bc04e1

3 files changed

Lines changed: 18 additions & 13 deletions

File tree

samples/OAuthConsumer/GoogleAddressBook.aspx.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,10 @@ protected void getAddressBookButton_Click(object sender, EventArgs e) {
5353
await google.GetContactsAsync(this.AccessToken, 5, 1, Response.ClientDisconnectedToken);
5454
var contacts =
5555
from entry in contactsDocument.Root.Elements(XName.Get("entry", "http://www.w3.org/2005/Atom"))
56-
select
57-
new {
58-
Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value,
59-
Email =
60-
entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value
61-
};
56+
select new {
57+
Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value,
58+
Email = entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value,
59+
};
6260
StringBuilder tableBuilder = new StringBuilder();
6361
tableBuilder.Append("<table><tr><td>Name</td><td>Email</td></tr>");
6462
foreach (var contact in contacts) {

src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessTokenResponse.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
namespace DotNetOpenAuth.OAuth {
1+
//-----------------------------------------------------------------------
2+
// <copyright file="AccessTokenResponse.cs" company="Andrew Arnott">
3+
// Copyright (c) Andrew Arnott. All rights reserved.
4+
// </copyright>
5+
//-----------------------------------------------------------------------
6+
7+
namespace DotNetOpenAuth.OAuth {
28
using System;
39
using System.Collections.Generic;
410
using System.Collections.Specialized;

src/DotNetOpenAuth.OpenId.RelyingParty.UI/OpenId/RelyingParty/OpenIdAjaxRelyingParty.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,13 @@ private async Task<object> AsJsonPreloadedDiscoveryResultAsync(IEnumerable<IAuth
236236
// string userSuppliedIdentifier;
237237
// jsonResponse discoveryResult; // contains result of call to SerializeDiscoveryAsJson(Identifier)
238238
// }
239-
var jsonAsync = (from request in requests
240-
group request by request.DiscoveryResult.UserSuppliedIdentifier into requestsByIdentifier
241-
select new {
242-
userSuppliedIdentifier = (string)requestsByIdentifier.Key,
243-
discoveryResult = this.AsJsonDiscoveryResultAsync(requestsByIdentifier, cancellationToken),
244-
}).ToArray();
239+
var jsonAsync = (
240+
from request in requests
241+
group request by request.DiscoveryResult.UserSuppliedIdentifier into requestsByIdentifier
242+
select new {
243+
userSuppliedIdentifier = (string)requestsByIdentifier.Key,
244+
discoveryResult = this.AsJsonDiscoveryResultAsync(requestsByIdentifier, cancellationToken),
245+
}).ToArray();
245246
await Task.WhenAll(jsonAsync.Select(j => j.discoveryResult));
246247
var json =
247248
from j in jsonAsync

0 commit comments

Comments
 (0)