summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2011-08-15 22:02:43 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2011-08-15 22:02:43 -0700
commitcabe9ad70ef14f86088e482b129c54c18c06d276 (patch)
tree281bd842778d612e094bb9177dea676a9104ec3b /src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs
parent890bf0c250bdcb57c48e8121f8308e8bdd045cb6 (diff)
downloadDotNetOpenAuth-cabe9ad70ef14f86088e482b129c54c18c06d276.zip
DotNetOpenAuth-cabe9ad70ef14f86088e482b129c54c18c06d276.tar.gz
DotNetOpenAuth-cabe9ad70ef14f86088e482b129c54c18c06d276.tar.bz2
Fixed a bug in configuration section handling that caused even simple unit tests to fail.
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs')
-rw-r--r--src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs b/src/DotNetOpenAuth.Messaging/Configuration/MessagingElement.cs
index 42ab0eb..397c97d 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 = DotNetOpenAuthSection.SectionName + "/messaging";
+ private const string MessagingElementName = "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)ConfigurationManager.GetSection(MessagingElementName) ?? new MessagingElement();
+ return (MessagingElement)DotNetOpenAuthSection.Configuration.Sections[MessagingElementName] ?? new MessagingElement();
}
}
@@ -200,6 +200,7 @@ namespace DotNetOpenAuth.Configuration {
/// <value>
/// The embedded resource retrieval provider.
/// </value>
+ [ConfigurationProperty(WebResourceUrlProviderName)]
internal TypeConfigurationElement<IEmbeddedResourceRetrieval> EmbeddedResourceRetrievalProvider {
get { return (TypeConfigurationElement<IEmbeddedResourceRetrieval>)this[WebResourceUrlProviderName] ?? new TypeConfigurationElement<IEmbeddedResourceRetrieval>(); }
set { this[WebResourceUrlProviderName] = value; }