+#if NET_2_0
+ internal static bool ApplicationDisabled {
+ get { return app_disabled; }
+ set { app_disabled = value; }
+ }
+
+ internal static string[] AppBrowsersFiles {
+ get { return app_browsers_files; }
+ }
+
+ static System.Web.Configuration.nBrowser.Build capabilities_processor = null;
+ static object capabilities_processor_lock = new object();
+ internal static System.Web.Configuration.ICapabilitiesProcess CapabilitiesProcessor {
+ get {
+ lock (capabilities_processor_lock) {
+ if (capabilities_processor == null) {
+ capabilities_processor = new System.Web.Configuration.nBrowser.Build();
+ string machine_browsers_path = Path.Combine (HttpRuntime.MachineConfigurationDirectory, "Browsers");
+ if (Directory.Exists (machine_browsers_path)) {
+ string[] machine_browsers_files
+ = Directory.GetFiles (machine_browsers_path, "*.browser");
+ foreach (string f in machine_browsers_files) {
+ capabilities_processor.AddBrowserFile(f);
+ }
+ }
+ foreach (string f in app_browsers_files) {
+ capabilities_processor.AddBrowserFile(f);
+ }
+ }
+ }
+ return capabilities_processor;
+ }
+ }
+#endif
+
+ internal static void DisableWatchers ()
+ {
+ lock (watchers_lock) {
+ foreach (FileSystemWatcher watcher in watchers)
+ watcher.EnableRaisingEvents = false;
+ }
+ }
+
+ internal static void EnableWatchers ()
+ {
+ lock (watchers_lock) {
+ foreach (FileSystemWatcher watcher in watchers)
+ watcher.EnableRaisingEvents = true;
+ }
+ }
+