https://bugzilla.novell.com/show_bug.cgi?id=336676#c4





--- Comment #4 from Robert Jordan <[EMAIL PROTECTED]>  2007-10-26 05:18:10 MST 
---
ASP.NET is using the watcher to detect file changes in order to recompile
them if necessary. It also watches web.config changes.

The following code shows the watcher implementation:

using System;
using System.Reflection;
using System.IO;

class Test {
        public static void Main ()
        {
                FileSystemWatcher fsw = new FileSystemWatcher ();
                FieldInfo fi = typeof (FileSystemWatcher).GetField ("watcher",
BindingFlags.Static | BindingFlags.NonPublic);
                Console.WriteLine (fi.GetValue (fsw).GetType ());
        }
}

The managed watcher is slow in detecting changes, because it has to
poll the files/directories. To avoid overloading the machine, it
checks for changes every 750ms.

For ASP.NET it's pretty irrelevant how fast changes are detected,
because only the information that something changed is important.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to