location,location,location. Fixes all the tests I broke last night
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / ProcessModelSection.cs
index d61c5ff1b953951f744e911a4034380ce4c0a112..4e19404eb313e0ada88ba23e06a7a1f7adcf3f28 100644 (file)
@@ -67,6 +67,8 @@ namespace System.Web.Configuration {
                static ConfigurationProperty webGardenProp;
                static ConfigurationPropertyCollection properties;
 
+               static ConfigurationElementProperty elementProperty;
+
                static ProcessModelSection ()
                {
                        autoConfigProp = new ConfigurationProperty ("autoConfig", typeof (bool), false);
@@ -82,7 +84,7 @@ namespace System.Web.Configuration {
                                                                               new GenericEnumConverter (typeof (ProcessModelComImpersonationLevel)),
                                                                               PropertyHelper.DefaultValidator,
                                                                               ConfigurationPropertyOptions.None);
-                       cpuMaskProp = new ConfigurationProperty ("cpuMask", typeof (int), 0xffffffff);
+                       cpuMaskProp = new ConfigurationProperty ("cpuMask", typeof (int), (int) (int.MaxValue & 0xfffffff));
                        enableProp = new ConfigurationProperty ("enable", typeof (bool), true);
                        idleTimeoutProp = new ConfigurationProperty ("idleTimeout", typeof (TimeSpan), TimeSpan.MaxValue,
                                                                     PropertyHelper.InfiniteTimeSpanConverter,
@@ -182,6 +184,17 @@ namespace System.Web.Configuration {
                        properties.Add (timeoutProp);
                        properties.Add (userNameProp);
                        properties.Add (webGardenProp);
+
+                       elementProperty = new ConfigurationElementProperty (new CallbackValidator (typeof (ProcessModelSection), ValidateElement));
+               }
+
+               static void ValidateElement (object o)
+               {
+                       /* XXX do some sort of element validation here? */
+               }
+
+               protected override ConfigurationElementProperty ElementProperty {
+                       get { return elementProperty; }
                }
 
                [ConfigurationProperty ("autoConfig", DefaultValue = "False")]
@@ -367,13 +380,6 @@ namespace System.Web.Configuration {
                        set { base[webGardenProp] = value; }
                }
 
-#if notyet
-               [MonoTODO]
-               public ConfigurationElementProperty ElementProperty {
-                       get { throw new NotImplementedException (); }
-               }
-#endif
-
                protected override ConfigurationPropertyCollection Properties {
                        get { return properties; }
                }