summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-10-10 10:51:27 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-10-10 10:51:27 -0700
commita5d9b6928598b72fb3baeb4485aaf0f34cc61e2e (patch)
treeb60642174a8dd14bc4ad542cfcb094d6f1c67c16
parentfe9ad1d80df56e764c9a0c7b456da9cf3bed720c (diff)
downloadDotNetOpenAuth-a5d9b6928598b72fb3baeb4485aaf0f34cc61e2e.zip
DotNetOpenAuth-a5d9b6928598b72fb3baeb4485aaf0f34cc61e2e.tar.gz
DotNetOpenAuth-a5d9b6928598b72fb3baeb4485aaf0f34cc61e2e.tar.bz2
Fixed a couple more configuration sections.
-rw-r--r--src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs4
-rw-r--r--src/DotNetOpenAuth.Messaging/Configuration/ReportingElement.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs b/src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs
index 35d0bd5..7c3e242 100644
--- a/src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs
+++ b/src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs
@@ -68,7 +68,7 @@ namespace DotNetOpenAuth.Configuration {
/// <summary>
/// The name of the &lt;messaging&gt; sub-element.
/// </summary>
- private const string MessagingElementName = "messaging";
+ private const string MessagingElementName = DotNetOpenAuthSection.SectionName + "/messaging";
/// <summary>
/// Gets the configuration section from the .config file.
@@ -76,7 +76,7 @@ namespace DotNetOpenAuth.Configuration {
public static MessagingElement Configuration {
get {
Contract.Ensures(Contract.Result<MessagingElement>() != null);
- return (MessagingElement)DotNetOpenAuthSection.GetNamedSection(MessagingElementName) ?? new MessagingElement();
+ return (MessagingElement)ConfigurationManager.GetSection(MessagingElementName) ?? new MessagingElement();
}
}
diff --git a/src/DotNetOpenAuth.Messaging/Configuration/ReportingElement.cs b/src/DotNetOpenAuth.Messaging/Configuration/ReportingElement.cs
index e36c6ac..a8eb7d3 100644
--- a/src/DotNetOpenAuth.Messaging/Configuration/ReportingElement.cs
+++ b/src/DotNetOpenAuth.Messaging/Configuration/ReportingElement.cs
@@ -77,7 +77,7 @@ namespace DotNetOpenAuth.Configuration {
public static ReportingElement Configuration {
get {
Contract.Ensures(Contract.Result<ReportingElement>() != null);
- return (ReportingElement)DotNetOpenAuthSection.GetNamedSection(ReportingElementName) ?? new ReportingElement();
+ return (ReportingElement)ConfigurationManager.GetSection(ReportingElementName) ?? new ReportingElement();
}
}