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

Commit

Permalink
Last StyleCop fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Mar 27, 2013
1 parent 461810c commit 3bc04e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
10 changes: 4 additions & 6 deletions samples/OAuthConsumer/GoogleAddressBook.aspx.cs
Expand Up @@ -53,12 +53,10 @@ public partial class GoogleAddressBook : System.Web.UI.Page {
await google.GetContactsAsync(this.AccessToken, 5, 1, Response.ClientDisconnectedToken);
var contacts =
from entry in contactsDocument.Root.Elements(XName.Get("entry", "http://www.w3.org/2005/Atom"))
select
new {
Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value,
Email =
entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value
};
select new {
Name = entry.Element(XName.Get("title", "http://www.w3.org/2005/Atom")).Value,
Email = entry.Element(XName.Get("email", "http://schemas.google.com/g/2005")).Attribute("address").Value,
};
StringBuilder tableBuilder = new StringBuilder();
tableBuilder.Append("<table><tr><td>Name</td><td>Email</td></tr>");
foreach (var contact in contacts) {
Expand Down
@@ -1,4 +1,10 @@
namespace DotNetOpenAuth.OAuth {
//-----------------------------------------------------------------------
// <copyright file="AccessTokenResponse.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.OAuth {
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
Expand Down
Expand Up @@ -236,12 +236,13 @@ public OpenIdAjaxRelyingParty(IOpenIdApplicationStore applicationStore)
// string userSuppliedIdentifier;
// jsonResponse discoveryResult; // contains result of call to SerializeDiscoveryAsJson(Identifier)
// }
var jsonAsync = (from request in requests
group request by request.DiscoveryResult.UserSuppliedIdentifier into requestsByIdentifier
select new {
userSuppliedIdentifier = (string)requestsByIdentifier.Key,
discoveryResult = this.AsJsonDiscoveryResultAsync(requestsByIdentifier, cancellationToken),
}).ToArray();
var jsonAsync = (
from request in requests
group request by request.DiscoveryResult.UserSuppliedIdentifier into requestsByIdentifier
select new {
userSuppliedIdentifier = (string)requestsByIdentifier.Key,
discoveryResult = this.AsJsonDiscoveryResultAsync(requestsByIdentifier, cancellationToken),
}).ToArray();
await Task.WhenAll(jsonAsync.Select(j => j.discoveryResult));
var json =
from j in jsonAsync
Expand Down

0 comments on commit 3bc04e1

Please sign in to comment.