[Mono-bugs] [Bug 53445][Wis] Changed - System.Configuration must use FileSystemWatcher

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 19 Mar 2004 18:29:23 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=53445

--- shadow/53445	2004-01-27 20:25:12.000000000 -0500
+++ shadow/53445.tmp.14183	2004-03-19 18:29:23.000000000 -0500
@@ -1,19 +1,55 @@
 Bug#: 53445
-Product: Mono/Class Libraries
+Product: Mono: Class Libraries
 Version: unspecified
 OS: All
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Wishlist
 Component: System
 AssignedTo: gonzalo@ximian.com                            
 ReportedBy: gonzalo@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: System.Configuration must use FileSystemWatcher
 
 Ditto
+
+------- Additional Comments From gonzalo@ximian.com  2004-03-19 18:29 -------
+Check this simple program:
+----
+using System;
+using System.Collections.Specialized;
+using System.Configuration;
+ 
+public class C
+{
+        static void Main ()
+        {
+                for (int i = 0; i < 2; i++) {
+                NameValueCollection c =
+ConfigurationSettings.AppSettings as NameValueCollection;
+                if (c == null) {
+                        Console.WriteLine ("c es null");
+                        return;
+                }
+ 
+                foreach (string s in c.Keys)
+                        Console.WriteLine ("key: {0} value: {1}", s, c
+[s]);
+ 
+                System.Threading.Thread.Sleep (5000);
+                }
+        }
+}
+-------
+
+Running that under MS and modifying the .config file keys/values cause
+no differences between first and second iteration.
+
+So... No need to monitor application config file. Also, the whole file
+is loaded, but not fully processed, on first request to read a section
+so, even if it's removed later, we still behave as MS.