+2005-11-04 Chris Toshok <toshok@ximian.com>
+
+ * System.Web.dll.sources: add the S.W.C_2.0/HttpModule*.cs files,
+ and nuke S.W.C_2.0/InternalSection.cs.
+
+ * System.Web.Configuration_2.0/SystemWebSectionGroup.cs: enable
+ the HttpModules property.
+
+ * System.Web.Configuration_2.0/HttpHandlerActionCollection.cs:
+ reindent, and add MonoTODO's.
+
+ * System.Web.Configuration_2.0/HttpHandlerAction.cs: use
+ properties in the ctor, and remove the instance variables.
+
+ * System.Web.Configuration_2.0/InternalSection.cs: nuke.
+
+ * System.Web.Configuration_2.0/HttpModuleActionCollection.cs: new
+ stubs.
+
+ * System.Web.Configuration_2.0/HttpModuleAction.cs: new stubs.
+
+ * System.Web.Configuration_2.0/HttpModulesSection.cs: new stubs.
+
+ * System.Web.Configuration_2.0/CompilationSection.cs: inherit from
+ ConfigurationSection, not InternalSection.
+
+ * System.Web.Configuration_2.0/SiteMapSection.cs: same.
+
+ * System.Web.Configuration_2.0/PagesSection.cs: same.
+
+ * System.Web.Configuration_2.0/MembershipSection.cs: same.
+
+ * System.Web.Configuration_2.0/AnonymousIdentificationSection.cs:
+ same.
+
2005-11-02 Chris Toshok <toshok@ximian.com>
* System.Web.dll.sources: add
namespace System.Web.Configuration
{
- public sealed class AnonymousIdentificationSection: InternalSection
+ public sealed class AnonymousIdentificationSection: ConfigurationSection
{
-/* static ConfigurationPropertyCollection properties;
+ static ConfigurationPropertyCollection properties;
static ConfigurationProperty enabledProp;
static ConfigurationProperty cookieNameProp;
static ConfigurationProperty cookieTimeoutProp;
static ConfigurationProperty cookieProtectionProp;
static ConfigurationProperty cookilessProp;
static ConfigurationProperty domainProp;
-*/
+
static AnonymousIdentificationSection ()
{
-/* enabledProp = new ConfigurationProperty ("enabled", typeof(bool), false);
- cookieNameProp = new NonEmptyStringConfigurationProperty ("cookieName", ".ASPXANONYMOUS", ConfigurationPropertyFlags.None);
- cookieTimeoutProp = new TimeSpanConfigurationProperty ("cookieTimeout", new TimeSpan (69,10,40,0), TimeSpanSerializedFormat.Minutes, TimeSpanPropertyFlags.AllowInfinite | TimeSpanPropertyFlags.ProhibitZero, ConfigurationPropertyFlags.None);
- cookiePathProp = new NonEmptyStringConfigurationProperty ("cookiePath", "/", ConfigurationPropertyFlags.None);
+ enabledProp = new ConfigurationProperty ("enabled", typeof(bool), false);
+ // cookieNameProp = new NonEmptyStringConfigurationProperty ("cookieName", ".ASPXANONYMOUS", ConfigurationPropertyFlags.None);
+ // cookieTimeoutProp = new TimeSpanConfigurationProperty ("cookieTimeout", new TimeSpan (69,10,40,0), TimeSpanSerializedFormat.Minutes, TimeSpanPropertyFlags.AllowInfinite | TimeSpanPropertyFlags.ProhibitZero, ConfigurationPropertyFlags.None);
+ // cookiePathProp = new NonEmptyStringConfigurationProperty ("cookiePath", "/", ConfigurationPropertyFlags.None);
cookieRequireSSLProp = new ConfigurationProperty ("cookieRequireSSL", typeof(bool), false);
cookieSlidingExpirationProp = new ConfigurationProperty ("cookieSlidingExpiration", typeof(bool), true);
cookieProtectionProp = new ConfigurationProperty ("cookieProtection", typeof(CookieProtection), CookieProtection.Validation);
properties.Add (cookieProtectionProp);
properties.Add (cookilessProp);
properties.Add (domainProp);
-*/ }
+ }
- [ConfigurationProperty ("cookieless", DefaultValue = HttpCookieMode.UseCookies)]\r
+ [ConfigurationProperty ("cookieless", DefaultValue = HttpCookieMode.UseCookies)]
public HttpCookieMode Cookieless {
get { return (HttpCookieMode) base ["cookieless"]; }
set { base ["cookieless"] = value; }
}
- [StringValidator (MaxLength = 1)]\r
- [ConfigurationProperty ("cookieName", DefaultValue = ".ASPXANONYMOUS")]\r
+ [StringValidator (MinLength = 1)]
+ [ConfigurationProperty ("cookieName", DefaultValue = ".ASPXANONYMOUS")]
public string CookieName {
get { return (string) base ["cookieName"]; }
set { base ["cookieName"] = value; }
}
- [StringValidator (MaxLength = 1)]\r
- [ConfigurationProperty ("cookiePath", DefaultValue = "/")]\r
+ [StringValidator (MinLength = 1)]
+ [ConfigurationProperty ("cookiePath", DefaultValue = "/")]
public string CookiePath {
get { return (string) base ["cookiePath"]; }
set { base ["cookiePath"] = value; }
}
- [ConfigurationProperty ("cookieProtection", DefaultValue = CookieProtection.Validation)]\r
+ [ConfigurationProperty ("cookieProtection", DefaultValue = CookieProtection.Validation)]
public CookieProtection CookieProtection {
get { return (CookieProtection) base ["cookieProtection"]; }
set { base ["cookieProtection"] = value; }
}
- [ConfigurationProperty ("cookieRequireSSL", DefaultValue = false)]\r
+ [ConfigurationProperty ("cookieRequireSSL", DefaultValue = false)]
public bool CookieRequireSSL {
get { return (bool) base ["cookieRequireSSL"]; }
set { base ["cookieRequireSSL"] = value; }
}
- [ConfigurationProperty ("cookieSlidingExpiration", DefaultValue = true)]\r
+ [ConfigurationProperty ("cookieSlidingExpiration", DefaultValue = true)]
public bool CookieSlidingExpiration {
get { return (bool) base ["cookieSlidingExpiration"]; }
set { base ["cookieSlidingExpiration"] = value; }
}
- [ConfigurationValidator (typeof(PositiveTimeSpanValidator))]\r
- [TypeConverter (typeof(TimeSpanMinutesOrInfiniteConverter))]\r
- [ConfigurationProperty ("cookieTimeout", DefaultValue = "69.10:40:00")]\r
+ [TimeSpanValidator ()]
+ [TypeConverter (typeof(TimeSpanMinutesOrInfiniteConverter))]
+ [ConfigurationProperty ("cookieTimeout", DefaultValue = "69.10:40:00")]
public TimeSpan CookieTimeout {
get { return (TimeSpan) base ["cookieTimeout"]; }
set { base ["cookieTimeout"] = value; }
}
- [ConfigurationProperty ("domain", DefaultValue = "")]\r
+ [ConfigurationProperty ("domain")]
public string Domain {
get { return (string) base ["domain"]; }
set { base ["domain"] = value; }
}
- [ConfigurationProperty ("enabled", DefaultValue = false)]\r
+ [ConfigurationProperty ("enabled", DefaultValue = false)]
public bool Enabled {
get { return (bool) base ["enabled"]; }
set { base ["enabled"] = value; }
}
-/* protected override ConfigurationPropertyCollection Properties {
+ protected override ConfigurationPropertyCollection Properties {
get { return properties; }
- }
-*/
+ }
}
}
namespace System.Web.Configuration
{
- public sealed class CompilationSection : InternalSection
+ public sealed class CompilationSection : ConfigurationSection
{
static ConfigurationPropertyCollection props;
static ConfigurationProperty compilers;
public HttpHandlerAction (string path, string type, string verb, bool validate)
{
- this.path = path;
- this.type = type;
- this.verb = verb;
- this.validate = validate;
+ Path = path;
+ Type = type;
+ Verb = verb;
+ Validate = validate;
}
[ConfigurationProperty ("path", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
return _properties;
}
}
-
- string path;
- string verb;
- string type;
- bool validate;
}
}
[ConfigurationCollection (typeof (HttpHandlerAction), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMapAlternate)]
public sealed class HttpHandlerActionCollection : ConfigurationElementCollection
{
+ [MonoTODO]
public HttpHandlerActionCollection ()
{
}
+ [MonoTODO]
public void Add (HttpHandlerAction httpHandlerAction)
{
}
+ [MonoTODO]
public void Clear ()
{
}
+ [MonoTODO]
protected override ConfigurationElement CreateNewElement ()
{
throw new NotImplementedException ();
}
+ [MonoTODO]
protected override object GetElementKey (ConfigurationElement element)
{
throw new NotImplementedException ();
}
+ [MonoTODO]
public int IndexOf (HttpHandlerAction action)
{
throw new NotImplementedException ();
}
+ [MonoTODO]
public void Remove (string verb, string path)
{
}
+ [MonoTODO]
public void Remove (HttpHandlerAction action)
{
}
+ [MonoTODO]
public void RemoveAt (int index)
{
}
+ [MonoTODO]
protected override ConfigurationElementCollectionType CollectionType {
get {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
+ [MonoTODO]
protected override ConfigurationPropertyCollection Properties {
get {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
+ [MonoTODO]
public HttpHandlerAction this[int index] {
get {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
set {
}
}
+ [MonoTODO]
protected override bool ThrowOnDuplicate {
get {
- throw new NotImplementedException ();
+ throw new NotImplementedException ();
}
}
}
--- /dev/null
+//
+// System.Web.Configuration.HttpModuleAction
+//
+// Authors:
+// Chris Toshok (toshok@ximian.com)
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Configuration;
+
+namespace System.Web.Configuration
+{
+ public sealed class HttpModuleAction: ConfigurationElement
+ {
+ static ConfigurationPropertyCollection _properties;
+ static ConfigurationProperty nameProp;
+ static ConfigurationProperty typeProp;
+
+ [MonoTODO]
+ static HttpModuleAction ()
+ {
+ /* XXX fill in _properties */
+ }
+
+ [MonoTODO]
+ public HttpModuleAction (string name, string type)
+ {
+ Name = name;
+ Type = type;
+ }
+#if notyet
+ [MonoTODO]
+ protected override ConfigurationElementProperty ElementProperty {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+#endif
+
+ [ConfigurationProperty ("name", DefaultValue = "", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
+ [StringValidator (MinLength = 1)]
+ public string Name {
+ get { return (string)base[nameProp]; }
+ set { base[nameProp] = value; }
+ }
+
+ [ConfigurationProperty ("type", DefaultValue = "", Options = ConfigurationPropertyOptions.IsRequired)]
+ public string Type {
+ get { return (string)base[typeProp]; }
+ set { base[typeProp] = value; }
+ }
+
+ protected override ConfigurationPropertyCollection Properties {
+ get {
+ return _properties;
+ }
+ }
+ }
+}
+
+#endif
--- /dev/null
+//
+// System.Web.Configuration.HttpModuleActionCollection
+//
+// Authors:
+// Chris Toshok (toshok@ximian.com)
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Configuration;
+
+namespace System.Web.Configuration
+{
+ [ConfigurationCollection (typeof (HttpModuleAction), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
+ public sealed class HttpModuleActionCollection : ConfigurationElementCollection
+ {
+ [MonoTODO]
+ public HttpModuleActionCollection ()
+ {
+ }
+
+ [MonoTODO]
+ public void Add (HttpModuleAction httpModuleAction)
+ {
+ }
+
+ [MonoTODO]
+ public void Clear ()
+ {
+ }
+
+ [MonoTODO]
+ protected override ConfigurationElement CreateNewElement ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected override object GetElementKey (ConfigurationElement element)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public int IndexOf (HttpModuleAction action)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Remove (string name)
+ {
+ }
+
+ [MonoTODO]
+ public void Remove (HttpModuleAction action)
+ {
+ }
+
+ [MonoTODO]
+ public void RemoveAt (int index)
+ {
+ }
+
+ [MonoTODO]
+ public bool IsElementRemovable (ConfigurationElement element)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected override ConfigurationPropertyCollection Properties {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ [MonoTODO]
+ public HttpModuleAction this[int index] {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ }
+ }
+ }
+}
+
+#endif
--- /dev/null
+//
+// System.Web.Configuration.HttpModulesSection
+//
+// Authors:
+// Chris Toshok (toshok@ximian.com)
+//
+// (C) 2005 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Configuration;
+
+namespace System.Web.Configuration
+{
+ public sealed class HttpModulesSection: ConfigurationSection
+ {
+ public HttpModulesSection ()
+ {
+ }
+
+ [MonoTODO]
+ [ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
+ public HttpModuleActionCollection Modules {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ [MonoTODO]
+ protected override ConfigurationPropertyCollection Properties {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+ }
+}
+
+#endif
+++ /dev/null
-//
-// System.Web.Configuration.InternalSection.cs
-//
-// Authors:
-// Lluis Sanchez Gual (lluis@novell.com)
-//
-// (C) 2004 Novell, Inc (http://www.novell.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-#if NET_2_0
-
-using System;
-using System.Configuration;
-
-namespace System.Web.Configuration
-{
- public class InternalSection: ConfigurationSection
- {
- [MonoTODO]
- protected virtual object GetRuntimeConfig ()
- {
- return null;
- }
-
- [MonoTODO]
- protected override object GetRuntimeObject ()
- {
- return this;
- }
- }
-}
-
-#endif
namespace System.Web.Configuration
{
- public sealed class MembershipSection: InternalSection
+ public sealed class MembershipSection: ConfigurationSection
{
[StringValidator (MinLength = 1)]
[ConfigurationProperty ("defaultProvider", DefaultValue = "AspNetSqlMembershipProvider")]
namespace System.Web.Configuration
{
- public class PagesSection: InternalSection
+ public sealed class PagesSection: ConfigurationSection
{
static ConfigurationPropertyCollection properties;
static ConfigurationProperty asyncTimeoutProp;
namespace System.Web.Configuration
{
- public sealed class SiteMapSection: InternalSection
+ public sealed class SiteMapSection: ConfigurationSection
{
[ConfigurationProperty ("defaultProvider", DefaultValue = "AspNetXmlSiteMapProvider")]
public string DefaultProvider {
get { return (HttpHandlersSection)Sections ["httpHandlers"]; }
}
-#if notyet
+ [ConfigurationProperty ("httpModules")]
public HttpModulesSection HttpModules {
get { return (HttpModulesSection)Sections ["httpModules"]; }
}
-#endif
#if notyet
public HttpRuntimeSection HttpRuntime {
System.Web.Configuration_2.0/HttpHandlerAction.cs
System.Web.Configuration_2.0/HttpHandlerActionCollection.cs
System.Web.Configuration_2.0/HttpHandlersSection.cs
-System.Web.Configuration_2.0/InternalSection.cs
+System.Web.Configuration_2.0/HttpModuleAction.cs
+System.Web.Configuration_2.0/HttpModuleActionCollection.cs
+System.Web.Configuration_2.0/HttpModulesSection.cs
System.Web.Configuration_2.0/IRemoteWebConfigurationHostServer.cs
System.Web.Configuration_2.0/MembershipSection.cs
System.Web.Configuration_2.0/PagesEnableSessionState.cs