2
0
Эх сурвалжийг харах

2005-11-18 Chris Toshok <[email protected]>

	* HostingEnvironmentSection.cs (.cctor): add validators.

	* CompilationSection.cs (.cctor): fix defaultvalue of
	urlLinePragmas.


svn path=/trunk/mcs/; revision=53261
Chris Toshok 20 жил өмнө
parent
commit
0ffbfe9314

+ 7 - 0
mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog

@@ -1,3 +1,10 @@
+2005-11-18  Chris Toshok  <[email protected]>
+
+	* HostingEnvironmentSection.cs (.cctor): add validators.
+
+	* CompilationSection.cs (.cctor): fix defaultvalue of
+	urlLinePragmas.
+
 2005-11-18  Chris Toshok  <[email protected]>
 
 	* SystemWebSectionGroup.cs: enable a whole slew of properties.

+ 1 - 1
mcs/class/System.Web/System.Web.Configuration_2.0/CompilationSection.cs

@@ -74,7 +74,7 @@ namespace System.Web.Configuration
 			numRecompilesBeforeAppRestartProp = new ConfigurationProperty ("numRecompilesBeforeAppRestart", typeof (int), 15);
 			strictProp = new ConfigurationProperty ("strict", typeof (bool), false);
 			tempDirectoryProp = new ConfigurationProperty ("tempDirectory", typeof (string), "");
-			urlLinePragmasProp = new ConfigurationProperty ("urlLinePragmas", typeof (bool));
+			urlLinePragmasProp = new ConfigurationProperty ("urlLinePragmas", typeof (bool), false);
 
 			properties = new ConfigurationPropertyCollection ();
 			properties.Add (assembliesProp);

+ 8 - 2
mcs/class/System.Web/System.Web.Configuration_2.0/HostingEnvironmentSection.cs

@@ -45,9 +45,15 @@ namespace System.Web.Configuration {
 
 		static HostingEnvironmentSection ()
 		{
-			idleTimeoutProp = new ConfigurationProperty ("idleTimeout", typeof (TimeSpan), TimeSpan.MaxValue);
+			idleTimeoutProp = new ConfigurationProperty ("idleTimeout", typeof (TimeSpan), TimeSpan.MaxValue,
+								     new TimeSpanMinutesOrInfiniteConverter (),
+								     new TimeSpanValidator (TimeSpan.Zero, TimeSpan.MaxValue),
+								     ConfigurationPropertyOptions.None);
 			shadowCopyBinAssembliesProp = new ConfigurationProperty ("shadowCopyBinAssemblies", typeof (bool), true);
-			shutdownTimeoutProp = new ConfigurationProperty ("shutdownTimeout", typeof (TimeSpan), TimeSpan.FromSeconds (30));
+			shutdownTimeoutProp = new ConfigurationProperty ("shutdownTimeout", typeof (TimeSpan), TimeSpan.FromSeconds (30),
+									 new TimeSpanSecondsConverter (),
+									 new TimeSpanValidator (TimeSpan.Zero, TimeSpan.MaxValue),
+									 ConfigurationPropertyOptions.None);
 			properties = new ConfigurationPropertyCollection ();
 
 			properties.Add (idleTimeoutProp);