public static void Start(HttpApplication context)
{
//DynamicModuleUtility.RegisterModule(typeof(AutoF5Module));
string path = HostingEnvironment.ApplicationPhysicalPath;
foreach (var ext in fileExtensions)
{
var fsw = new FileSystemWatcher(path);
fsw.IncludeSubdirectories = true;
fsw.NotifyFilter = NotifyFilters.LastWrite;
if (ext == "*.css")
fsw.Changed += new FileSystemEventHandler(css_Changed);
else
fsw.Changed += new FileSystemEventHandler(fsw_Changed);
fsw.Filter = ext;
fsw.EnableRaisingEvents = true;
fsws.Add(fsw);
}
}