summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumer
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-19 17:24:07 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-19 17:24:07 -0700
commitcdfbd61ee254d396066eea9fcfaf578df2b773d0 (patch)
treec95757c653b3493e38d9ba379bd853acc23fb92c /samples/OAuthConsumer
parent71d363716853191028cd2b750d52197290428734 (diff)
downloadDotNetOpenAuth-cdfbd61ee254d396066eea9fcfaf578df2b773d0.zip
DotNetOpenAuth-cdfbd61ee254d396066eea9fcfaf578df2b773d0.tar.gz
DotNetOpenAuth-cdfbd61ee254d396066eea9fcfaf578df2b773d0.tar.bz2
Removed C# 4 usage from samples so they build under VS2008.
Diffstat (limited to 'samples/OAuthConsumer')
-rw-r--r--samples/OAuthConsumer/GoogleAddressBook.aspx.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs
index 1ca3abe..ddca7e4 100644
--- a/samples/OAuthConsumer/GoogleAddressBook.aspx.cs
+++ b/samples/OAuthConsumer/GoogleAddressBook.aspx.cs
@@ -57,7 +57,7 @@
protected void getAddressBookButton_Click(object sender, EventArgs e) {
var google = new WebConsumer(GoogleConsumer.ServiceDescription, this.TokenManager);
- XDocument contactsDocument = GoogleConsumer.GetContacts(google, this.AccessToken, 5);
+ XDocument contactsDocument = GoogleConsumer.GetContacts(google, this.AccessToken, 5, 1);
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 };
StringBuilder tableBuilder = new StringBuilder();