summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-05-27 20:19:16 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-05-27 20:19:16 -0700
commit1639f450f5c6e62b4746155de5cf1c1ffbd1286a (patch)
tree074da8a82f44b018f7a5c5db4247e3e3f7bc2b1d /samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
parentc0cc7af4c210103a2ef6f3144e307bcd130a77d1 (diff)
downloadDotNetOpenAuth-1639f450f5c6e62b4746155de5cf1c1ffbd1286a.zip
DotNetOpenAuth-1639f450f5c6e62b4746155de5cf1c1ffbd1286a.tar.gz
DotNetOpenAuth-1639f450f5c6e62b4746155de5cf1c1ffbd1286a.tar.bz2
Fixed a couple of bugs in the RP sample's custom store.
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs')
-rw-r--r--samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
index 12008ca..3ab6292 100644
--- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
+++ b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs
@@ -1,8 +1,15 @@
-namespace OpenIdRelyingPartyWebForms.Code {
+//-----------------------------------------------------------------------
+// <copyright file="CustomStore.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace OpenIdRelyingPartyWebForms.Code {
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
+ using System.Linq;
using DotNetOpenAuth;
using DotNetOpenAuth.Configuration;
using DotNetOpenAuth.Messaging.Bindings;
@@ -94,7 +101,7 @@
yield break;
}
- foreach (CustomStoreDataSet.CryptoKeyRow row in view) {
+ foreach (CustomStoreDataSet.CryptoKeyRow row in view.Cast<DataRowView>().Select(rv => rv.Row)) {
yield return new KeyValuePair<string, CryptoKey>(row.Handle, new CryptoKey(row.Secret, row.ExpiresUtc));
}
}