static ConfigurationProperty webGardenProp;
static ConfigurationPropertyCollection properties;
+ static ConfigurationElementProperty elementProperty;
+
static ProcessModelSection ()
{
autoConfigProp = new ConfigurationProperty ("autoConfig", typeof (bool), false);
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,
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")]
set { base[webGardenProp] = value; }
}
-#if notyet
- [MonoTODO]
- public ConfigurationElementProperty ElementProperty {
- get { throw new NotImplementedException (); }
- }
-#endif
-
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}