diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/CommaDelimitedConfigurationElement.cs b/src/Umbraco.Core/Configuration/CommaDelimitedConfigurationElement.cs
similarity index 91%
rename from src/Umbraco.Core/Configuration/UmbracoSettings/CommaDelimitedConfigurationElement.cs
rename to src/Umbraco.Core/Configuration/CommaDelimitedConfigurationElement.cs
index 03a31fc1fd..ce43416a25 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/CommaDelimitedConfigurationElement.cs
+++ b/src/Umbraco.Core/Configuration/CommaDelimitedConfigurationElement.cs
@@ -1,70 +1,70 @@
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.Specialized;
-using System.Configuration;
-
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- ///
- /// Defines a configuration section that contains inner text that is comma delimited
- ///
- internal class CommaDelimitedConfigurationElement : InnerTextConfigurationElement, IEnumerable
- {
- public override CommaDelimitedStringCollection Value
- {
- get
- {
- var converter = new CommaDelimitedStringCollectionConverter();
- return (CommaDelimitedStringCollection) converter.ConvertFrom(RawValue);
- }
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return new InnerEnumerator(Value.GetEnumerator());
- }
-
- IEnumerator IEnumerable.GetEnumerator()
- {
- return new InnerEnumerator(Value.GetEnumerator());
- }
-
- ///
- /// A wrapper for StringEnumerator since it doesn't explicitly implement IEnumerable
- ///
- private class InnerEnumerator : IEnumerator
- {
- private readonly StringEnumerator _stringEnumerator;
-
- public InnerEnumerator(StringEnumerator stringEnumerator)
- {
- _stringEnumerator = stringEnumerator;
- }
-
- public bool MoveNext()
- {
- return _stringEnumerator.MoveNext();
- }
-
- public void Reset()
- {
- _stringEnumerator.Reset();
- }
-
- string IEnumerator.Current
- {
- get { return _stringEnumerator.Current; }
- }
-
- public object Current
- {
- get { return _stringEnumerator.Current; }
- }
-
- public void Dispose()
- {
- _stringEnumerator.DisposeIfDisposable();
- }
- }
- }
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Configuration;
+
+namespace Umbraco.Core.Configuration
+{
+ ///
+ /// Defines a configuration section that contains inner text that is comma delimited
+ ///
+ internal class CommaDelimitedConfigurationElement : InnerTextConfigurationElement, IEnumerable
+ {
+ public override CommaDelimitedStringCollection Value
+ {
+ get
+ {
+ var converter = new CommaDelimitedStringCollectionConverter();
+ return (CommaDelimitedStringCollection) converter.ConvertFrom(RawValue);
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return new InnerEnumerator(Value.GetEnumerator());
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return new InnerEnumerator(Value.GetEnumerator());
+ }
+
+ ///
+ /// A wrapper for StringEnumerator since it doesn't explicitly implement IEnumerable
+ ///
+ private class InnerEnumerator : IEnumerator
+ {
+ private readonly StringEnumerator _stringEnumerator;
+
+ public InnerEnumerator(StringEnumerator stringEnumerator)
+ {
+ _stringEnumerator = stringEnumerator;
+ }
+
+ public bool MoveNext()
+ {
+ return _stringEnumerator.MoveNext();
+ }
+
+ public void Reset()
+ {
+ _stringEnumerator.Reset();
+ }
+
+ string IEnumerator.Current
+ {
+ get { return _stringEnumerator.Current; }
+ }
+
+ public object Current
+ {
+ get { return _stringEnumerator.Current; }
+ }
+
+ public void Dispose()
+ {
+ UmbracoSettings.ObjectExtensions.DisposeIfDisposable(_stringEnumerator);
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/InnerTextConfigurationElement.cs b/src/Umbraco.Core/Configuration/InnerTextConfigurationElement.cs
similarity index 92%
rename from src/Umbraco.Core/Configuration/UmbracoSettings/InnerTextConfigurationElement.cs
rename to src/Umbraco.Core/Configuration/InnerTextConfigurationElement.cs
index 11da52bd3c..5363893971 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/InnerTextConfigurationElement.cs
+++ b/src/Umbraco.Core/Configuration/InnerTextConfigurationElement.cs
@@ -1,69 +1,69 @@
-using System;
-using System.Xml;
-using System.Xml.Linq;
-
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- ///
- /// A full config section is required for any full element and we have some elements that are defined like this:
- /// {element}MyValue{/element} instead of as attribute values.
- ///
- ///
- internal class InnerTextConfigurationElement : RawXmlConfigurationElement
- {
- public InnerTextConfigurationElement()
- {
- }
-
- public InnerTextConfigurationElement(XElement rawXml) : base(rawXml)
- {
- }
-
- protected override void DeserializeElement(XmlReader reader, bool serializeCollectionKey)
- {
- base.DeserializeElement(reader, serializeCollectionKey);
- //now validate and set the raw value
- if (RawXml.HasElements)
- throw new InvalidOperationException("An InnerTextConfigurationElement cannot contain any child elements, only attributes and a value");
- RawValue = RawXml.Value;
-
- //RawValue = reader.ReadElementContentAsString();
- }
-
- public virtual T Value
- {
- get
- {
- var converted = RawValue.TryConvertTo();
- if (converted.Success == false)
- throw new InvalidCastException("Could not convert value " + RawValue + " to type " + typeof(T));
- return converted.Result;
- }
- }
-
- ///
- /// Exposes the raw string value
- ///
- internal string RawValue { get; set; }
-
- ///
- /// Implicit operator so we don't need to use the 'Value' property explicitly
- ///
- ///
- ///
- public static implicit operator T(InnerTextConfigurationElement m)
- {
- return m.Value;
- }
-
- ///
- /// Return the string value of Value
- ///
- ///
- public override string ToString()
- {
- return string.Format("{0}", Value);
- }
-
- }
+using System;
+using System.Xml;
+using System.Xml.Linq;
+
+namespace Umbraco.Core.Configuration
+{
+ ///
+ /// A full config section is required for any full element and we have some elements that are defined like this:
+ /// {element}MyValue{/element} instead of as attribute values.
+ ///
+ ///
+ internal class InnerTextConfigurationElement : RawXmlConfigurationElement
+ {
+ public InnerTextConfigurationElement()
+ {
+ }
+
+ public InnerTextConfigurationElement(XElement rawXml) : base(rawXml)
+ {
+ }
+
+ protected override void DeserializeElement(XmlReader reader, bool serializeCollectionKey)
+ {
+ base.DeserializeElement(reader, serializeCollectionKey);
+ //now validate and set the raw value
+ if (RawXml.HasElements)
+ throw new InvalidOperationException("An InnerTextConfigurationElement cannot contain any child elements, only attributes and a value");
+ RawValue = RawXml.Value;
+
+ //RawValue = reader.ReadElementContentAsString();
+ }
+
+ public virtual T Value
+ {
+ get
+ {
+ var converted = UmbracoSettings.ObjectExtensions.TryConvertTo(RawValue);
+ if (converted.Success == false)
+ throw new InvalidCastException("Could not convert value " + RawValue + " to type " + typeof(T));
+ return converted.Result;
+ }
+ }
+
+ ///
+ /// Exposes the raw string value
+ ///
+ internal string RawValue { get; set; }
+
+ ///
+ /// Implicit operator so we don't need to use the 'Value' property explicitly
+ ///
+ ///
+ ///
+ public static implicit operator T(InnerTextConfigurationElement m)
+ {
+ return m.Value;
+ }
+
+ ///
+ /// Return the string value of Value
+ ///
+ ///
+ public override string ToString()
+ {
+ return string.Format("{0}", Value);
+ }
+
+ }
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/OptionalCommaDelimitedConfigurationElement.cs b/src/Umbraco.Core/Configuration/OptionalCommaDelimitedConfigurationElement.cs
similarity index 92%
rename from src/Umbraco.Core/Configuration/UmbracoSettings/OptionalCommaDelimitedConfigurationElement.cs
rename to src/Umbraco.Core/Configuration/OptionalCommaDelimitedConfigurationElement.cs
index 432e4d8fa9..18062a9ed9 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/OptionalCommaDelimitedConfigurationElement.cs
+++ b/src/Umbraco.Core/Configuration/OptionalCommaDelimitedConfigurationElement.cs
@@ -1,42 +1,43 @@
-using System.Configuration;
-
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- ///
- /// Used for specifying default values for comma delimited config
- ///
- internal class OptionalCommaDelimitedConfigurationElement : CommaDelimitedConfigurationElement
- {
- private readonly CommaDelimitedConfigurationElement _wrapped;
- private readonly string[] _defaultValue;
-
- public OptionalCommaDelimitedConfigurationElement()
- {
- }
-
- public OptionalCommaDelimitedConfigurationElement(CommaDelimitedConfigurationElement wrapped, string[] defaultValue)
- {
- _wrapped = wrapped;
- _defaultValue = defaultValue;
- }
-
- public override CommaDelimitedStringCollection Value
- {
- get
- {
- if (_wrapped == null)
- {
- return base.Value;
- }
-
- if (string.IsNullOrEmpty(_wrapped.RawValue))
- {
- var val = new CommaDelimitedStringCollection();
- val.AddRange(_defaultValue);
- return val;
- }
- return _wrapped.Value;
- }
- }
- }
+using System.Configuration;
+using Umbraco.Core.Configuration.UmbracoSettings;
+
+namespace Umbraco.Core.Configuration
+{
+ ///
+ /// Used for specifying default values for comma delimited config
+ ///
+ internal class OptionalCommaDelimitedConfigurationElement : CommaDelimitedConfigurationElement
+ {
+ private readonly CommaDelimitedConfigurationElement _wrapped;
+ private readonly string[] _defaultValue;
+
+ public OptionalCommaDelimitedConfigurationElement()
+ {
+ }
+
+ public OptionalCommaDelimitedConfigurationElement(CommaDelimitedConfigurationElement wrapped, string[] defaultValue)
+ {
+ _wrapped = wrapped;
+ _defaultValue = defaultValue;
+ }
+
+ public override CommaDelimitedStringCollection Value
+ {
+ get
+ {
+ if (_wrapped == null)
+ {
+ return base.Value;
+ }
+
+ if (string.IsNullOrEmpty(_wrapped.RawValue))
+ {
+ var val = new CommaDelimitedStringCollection();
+ val.AddRange(_defaultValue);
+ return val;
+ }
+ return _wrapped.Value;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/OptionalInnerTextConfigurationElement.cs b/src/Umbraco.Core/Configuration/OptionalInnerTextConfigurationElement.cs
similarity index 90%
rename from src/Umbraco.Core/Configuration/UmbracoSettings/OptionalInnerTextConfigurationElement.cs
rename to src/Umbraco.Core/Configuration/OptionalInnerTextConfigurationElement.cs
index 2180955c91..a2daf059b4 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/OptionalInnerTextConfigurationElement.cs
+++ b/src/Umbraco.Core/Configuration/OptionalInnerTextConfigurationElement.cs
@@ -1,23 +1,23 @@
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- ///
- /// This is used to supply optional/default values when using InnerTextConfigurationElement
- ///
- ///
- internal class OptionalInnerTextConfigurationElement : InnerTextConfigurationElement
- {
- private readonly InnerTextConfigurationElement _wrapped;
- private readonly T _defaultValue;
-
- public OptionalInnerTextConfigurationElement(InnerTextConfigurationElement wrapped, T defaultValue)
- {
- _wrapped = wrapped;
- _defaultValue = defaultValue;
- }
-
- public override T Value
- {
- get { return string.IsNullOrEmpty(_wrapped.RawValue) ? _defaultValue : _wrapped.Value; }
- }
- }
+namespace Umbraco.Core.Configuration
+{
+ ///
+ /// This is used to supply optional/default values when using InnerTextConfigurationElement
+ ///
+ ///
+ internal class OptionalInnerTextConfigurationElement : InnerTextConfigurationElement
+ {
+ private readonly InnerTextConfigurationElement _wrapped;
+ private readonly T _defaultValue;
+
+ public OptionalInnerTextConfigurationElement(InnerTextConfigurationElement wrapped, T defaultValue)
+ {
+ _wrapped = wrapped;
+ _defaultValue = defaultValue;
+ }
+
+ public override T Value
+ {
+ get { return string.IsNullOrEmpty(_wrapped.RawValue) ? _defaultValue : _wrapped.Value; }
+ }
+ }
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/RawXmlConfigurationElement.cs b/src/Umbraco.Core/Configuration/RawXmlConfigurationElement.cs
similarity index 90%
rename from src/Umbraco.Core/Configuration/UmbracoSettings/RawXmlConfigurationElement.cs
rename to src/Umbraco.Core/Configuration/RawXmlConfigurationElement.cs
index dbe1e6b6ad..aec3af9481 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/RawXmlConfigurationElement.cs
+++ b/src/Umbraco.Core/Configuration/RawXmlConfigurationElement.cs
@@ -1,30 +1,30 @@
-using System.Configuration;
-using System.Xml;
-using System.Xml.Linq;
-
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- ///
- /// A configuration section that simply exposes the entire raw xml of the section itself which inheritors can use
- /// to do with as they please.
- ///
- internal abstract class RawXmlConfigurationElement : ConfigurationElement
- {
- protected RawXmlConfigurationElement()
- {
-
- }
-
- protected RawXmlConfigurationElement(XElement rawXml)
- {
- RawXml = rawXml;
- }
-
- protected override void DeserializeElement(XmlReader reader, bool serializeCollectionKey)
- {
- RawXml = (XElement)XNode.ReadFrom(reader);
- }
-
- protected XElement RawXml { get; private set; }
- }
+using System.Configuration;
+using System.Xml;
+using System.Xml.Linq;
+
+namespace Umbraco.Core.Configuration
+{
+ ///
+ /// A configuration section that simply exposes the entire raw xml of the section itself which inheritors can use
+ /// to do with as they please.
+ ///
+ internal abstract class RawXmlConfigurationElement : ConfigurationElement
+ {
+ protected RawXmlConfigurationElement()
+ {
+
+ }
+
+ protected RawXmlConfigurationElement(XElement rawXml)
+ {
+ RawXml = rawXml;
+ }
+
+ protected override void DeserializeElement(XmlReader reader, bool serializeCollectionKey)
+ {
+ RawXml = (XElement)XNode.ReadFrom(reader);
+ }
+
+ protected XElement RawXml { get; private set; }
+ }
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/ExternalLoggerElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/ExternalLoggerElement.cs
index 98039f8e65..8d8d7b3f0d 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/ExternalLoggerElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/ExternalLoggerElement.cs
@@ -2,7 +2,7 @@
namespace Umbraco.Core.Configuration.UmbracoSettings
{
- internal class ExternalLoggerElement : ConfigurationElement, IExternalLogger
+ internal class ExternalLoggerElement : ConfigurationElement
{
[ConfigurationProperty("assembly")]
internal string Assembly
@@ -21,20 +21,5 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
{
get { return (bool)base["logAuditTrail"]; }
}
-
- string IExternalLogger.Assembly
- {
- get { return Assembly; }
- }
-
- string IExternalLogger.ExternalLoggerType
- {
- get { return Type; }
- }
-
- bool IExternalLogger.LogAuditTrail
- {
- get { return LogAuditTrail; }
- }
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IExternalLogger.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IExternalLogger.cs
deleted file mode 100644
index ae2353f161..0000000000
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IExternalLogger.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Configuration;
-
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- public interface IExternalLogger
- {
- string Assembly { get; }
-
- string ExternalLoggerType { get; }
-
- bool LogAuditTrail { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/ILogging.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/ILogging.cs
index b5525f3f52..cc0a54b515 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/ILogging.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/ILogging.cs
@@ -16,7 +16,11 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
IEnumerable DisabledLogTypes { get; }
- IExternalLogger ExternalLogger { get; }
+ string ExternalLoggerAssembly { get; }
+
+ string ExternalLoggerType { get; }
+
+ bool ExternalLoggerEnableAuditTrail { get; }
bool ExternalLoggerIsConfigured { get; }
}
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IProviders.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IProviders.cs
index 60bf0e9687..92543401b0 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IProviders.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IProviders.cs
@@ -3,7 +3,7 @@
namespace Umbraco.Core.Configuration.UmbracoSettings
{
public interface IProviders
- {
- IUserProvider Users { get; }
+ {
+ string DefaultBackOfficeUserProvider { get; }
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IRazor.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IRazor.cs
deleted file mode 100644
index 10f70dcf55..0000000000
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IRazor.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System.Collections.Generic;
-
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- public interface IRazor
- {
- IEnumerable NotDynamicXmlDocumentElements { get; }
-
- IEnumerable DataTypeModelStaticMappings { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IRequestHandler.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IRequestHandler.cs
index 2d550d3b49..0f3ff38413 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IRequestHandler.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IRequestHandler.cs
@@ -1,4 +1,6 @@
-namespace Umbraco.Core.Configuration.UmbracoSettings
+using System.Collections.Generic;
+
+namespace Umbraco.Core.Configuration.UmbracoSettings
{
public interface IRequestHandler
{
@@ -6,6 +8,8 @@
bool AddTrailingSlash { get; }
- IUrlReplacing UrlReplacing { get; }
+ bool RemoveDoubleDashes { get; }
+
+ IEnumerable CharCollection { get; }
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IScripting.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IScripting.cs
index 6b541b2371..3b7810958d 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IScripting.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/IScripting.cs
@@ -1,7 +1,11 @@
-namespace Umbraco.Core.Configuration.UmbracoSettings
+using System.Collections.Generic;
+
+namespace Umbraco.Core.Configuration.UmbracoSettings
{
public interface IScripting
{
- IRazor Razor { get; }
+ IEnumerable NotDynamicXmlDocumentElements { get; }
+
+ IEnumerable DataTypeModelStaticMappings { get; }
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IUrlReplacing.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IUrlReplacing.cs
deleted file mode 100644
index 54ee16a2b7..0000000000
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IUrlReplacing.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System.Collections.Generic;
-
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- public interface IUrlReplacing
- {
- bool RemoveDoubleDashes { get; }
-
- IEnumerable CharCollection { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/IUserProvider.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/IUserProvider.cs
deleted file mode 100644
index 233a285bea..0000000000
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/IUserProvider.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Umbraco.Core.Configuration.UmbracoSettings
-{
- public interface IUserProvider
- {
- string DefaultBackOfficeProvider { get; }
- }
-}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/LoggingElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/LoggingElement.cs
index a28d71e9d4..bb880af85c 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/LoggingElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/LoggingElement.cs
@@ -93,6 +93,20 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
}
}
+ string ILogging.ExternalLoggerAssembly
+ {
+ get { return ExternalLogger.Assembly; }
+ }
+
+ string ILogging.ExternalLoggerType
+ {
+ get { return ExternalLogger.Type; }
+ }
+
+ bool ILogging.ExternalLoggerEnableAuditTrail
+ {
+ get { return ExternalLogger.LogAuditTrail; }
+ }
bool ILogging.AutoCleanLogs
{
@@ -124,10 +138,5 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
get { return DisabledLogTypes; }
}
- IExternalLogger ILogging.ExternalLogger
- {
- get { return ExternalLogger; }
- }
-
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/ProvidersElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/ProvidersElement.cs
index 86718c8520..76f3363f20 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/ProvidersElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/ProvidersElement.cs
@@ -10,9 +10,9 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
get { return (UserProviderElement)base["users"]; }
}
- IUserProvider IProviders.Users
+ public string DefaultBackOfficeUserProvider
{
- get { return Users; }
+ get { return Users.DefaultBackOfficeProvider; }
}
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/RazorElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/RazorElement.cs
index af7f258eb3..06d0abdf76 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/RazorElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/RazorElement.cs
@@ -3,7 +3,7 @@ using System.Configuration;
namespace Umbraco.Core.Configuration.UmbracoSettings
{
- internal class RazorElement : ConfigurationElement, IRazor
+ internal class RazorElement : ConfigurationElement
{
private NotDynamicXmlDocumentElementCollection _defaultCollection;
@@ -46,14 +46,5 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
get { return (RazorStaticMappingCollection) base["dataTypeModelStaticMappings"]; }
}
- IEnumerable IRazor.NotDynamicXmlDocumentElements
- {
- get { return NotDynamicXmlDocumentElements; }
- }
-
- IEnumerable IRazor.DataTypeModelStaticMappings
- {
- get { return DataTypeModelStaticMappings; }
- }
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/RequestHandlerElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/RequestHandlerElement.cs
index 22611ba7c2..acdd2d94ea 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/RequestHandlerElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/RequestHandlerElement.cs
@@ -111,9 +111,14 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
get { return AddTrailingSlash; }
}
- IUrlReplacing IRequestHandler.UrlReplacing
+ bool IRequestHandler.RemoveDoubleDashes
{
- get { return UrlReplacing; }
+ get { return UrlReplacing.RemoveDoubleDashes; }
+ }
+
+ IEnumerable IRequestHandler.CharCollection
+ {
+ get { return UrlReplacing.CharCollection; }
}
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/ScriptingElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/ScriptingElement.cs
index 0b51f1e810..7de6b8b4f2 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/ScriptingElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/ScriptingElement.cs
@@ -1,4 +1,5 @@
-using System.Configuration;
+using System.Collections.Generic;
+using System.Configuration;
namespace Umbraco.Core.Configuration.UmbracoSettings
{
@@ -10,10 +11,14 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
get { return (RazorElement) base["razor"]; }
}
-
- IRazor IScripting.Razor
+ IEnumerable IScripting.NotDynamicXmlDocumentElements
{
- get { return Razor; }
+ get { return Razor.NotDynamicXmlDocumentElements; }
+ }
+
+ IEnumerable IScripting.DataTypeModelStaticMappings
+ {
+ get { return Razor.DataTypeModelStaticMappings; }
}
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/UrlReplacingElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/UrlReplacingElement.cs
index 597e15f156..f7f35e55e5 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/UrlReplacingElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/UrlReplacingElement.cs
@@ -3,7 +3,7 @@ using System.Configuration;
namespace Umbraco.Core.Configuration.UmbracoSettings
{
- internal class UrlReplacingElement : ConfigurationElement, IUrlReplacing
+ internal class UrlReplacingElement : ConfigurationElement
{
[ConfigurationProperty("removeDoubleDashes", DefaultValue = true)]
internal bool RemoveDoubleDashes
@@ -18,16 +18,6 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
get { return (CharCollection)base[""]; }
set { base[""] = value; }
}
-
-
- bool IUrlReplacing.RemoveDoubleDashes
- {
- get { return RemoveDoubleDashes; }
- }
-
- IEnumerable IUrlReplacing.CharCollection
- {
- get { return CharCollection; }
- }
+
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/UserProviderElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/UserProviderElement.cs
index fbff598d79..d12c937abf 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/UserProviderElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/UserProviderElement.cs
@@ -2,7 +2,7 @@
namespace Umbraco.Core.Configuration.UmbracoSettings
{
- internal class UserProviderElement : ConfigurationElement, IUserProvider
+ internal class UserProviderElement : ConfigurationElement
{
[ConfigurationProperty("DefaultBackofficeProvider")]
internal InnerTextConfigurationElement DefaultBackOfficeProvider
@@ -16,9 +16,6 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
}
}
- string IUserProvider.DefaultBackOfficeProvider
- {
- get { return DefaultBackOfficeProvider; }
- }
+
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/PublishedContentHelper.cs b/src/Umbraco.Core/PublishedContentHelper.cs
index 41ad058a7e..ebb7b5c083 100644
--- a/src/Umbraco.Core/PublishedContentHelper.cs
+++ b/src/Umbraco.Core/PublishedContentHelper.cs
@@ -174,7 +174,7 @@ namespace Umbraco.Core
var documentElement = e.Name.LocalName;
//TODO: See note against this setting, pretty sure we don't need this
- if (UmbracoConfiguration.Current.UmbracoSettings.Scripting.Razor.NotDynamicXmlDocumentElements.Any(
+ if (UmbracoConfiguration.Current.UmbracoSettings.Scripting.NotDynamicXmlDocumentElements.Any(
tag => string.Equals(tag.Element, documentElement, StringComparison.CurrentCultureIgnoreCase)) == false)
{
return new Attempt