diff options
-rw-r--r-- | src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs | 4 | ||||
-rw-r--r-- | src/DotNetOpenAuth.Messaging/Configuration/ReportingElement.cs | 2 |
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 <messaging> 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(); } } |