summaryrefslogtreecommitdiffstats
path: root/samples/Consumer
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-10-06 08:04:30 -0700
committerAndrew <andrewarnott@gmail.com>2008-10-06 08:04:30 -0700
commitf367f68a81e06dcab56348c85f7c09526123c916 (patch)
treec06ead228b7eb588ab783025ed05f816f5af5ee4 /samples/Consumer
parent5e8d26c757a32e3c0237b447d142a3de071fa992 (diff)
downloadDotNetOpenAuth-f367f68a81e06dcab56348c85f7c09526123c916.zip
DotNetOpenAuth-f367f68a81e06dcab56348c85f7c09526123c916.tar.gz
DotNetOpenAuth-f367f68a81e06dcab56348c85f7c09526123c916.tar.bz2
WCF OAuth sample now has 'real' database and login.
Diffstat (limited to 'samples/Consumer')
-rw-r--r--samples/Consumer/App_WebReferences/SampleServiceProvider/DataApi1.xsd2
-rw-r--r--samples/Consumer/SampleWcf.aspx.cs4
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/Consumer/App_WebReferences/SampleServiceProvider/DataApi1.xsd b/samples/Consumer/App_WebReferences/SampleServiceProvider/DataApi1.xsd
index 43c8d9b..3d653c3 100644
--- a/samples/Consumer/App_WebReferences/SampleServiceProvider/DataApi1.xsd
+++ b/samples/Consumer/App_WebReferences/SampleServiceProvider/DataApi1.xsd
@@ -8,7 +8,7 @@
<xs:element name="GetAgeResponse">
<xs:complexType>
<xs:sequence>
- <xs:element minOccurs="0" name="GetAgeResult" type="xs:int" />
+ <xs:element minOccurs="0" name="GetAgeResult" nillable="true" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
diff --git a/samples/Consumer/SampleWcf.aspx.cs b/samples/Consumer/SampleWcf.aspx.cs
index 1e03669..c1e0209 100644
--- a/samples/Consumer/SampleWcf.aspx.cs
+++ b/samples/Consumer/SampleWcf.aspx.cs
@@ -35,8 +35,8 @@ public partial class SampleWcf : System.Web.UI.Page {
}
protected void getAgeButton_Click(object sender, EventArgs e) {
- int age = CallService(client => client.GetAge());
- ageLabel.Text = age.ToString(CultureInfo.CurrentCulture);
+ int? age = CallService(client => client.GetAge());
+ ageLabel.Text = age.HasValue ? age.Value.ToString(CultureInfo.CurrentCulture) : "not available";
}
private T CallService<T>(Func<DataApiClient, T> predicate) {