public MusicShareWatcher() { InitializeComponent(); Thread.CurrentThread.Name = "MusicShareWatcherApp"; bMonitoring = true; // Setup the Watching watcher = new MusicShareWatcherHelper(); watcher.SetMonitoring(true); watcher.StartMonitor(); }
public MusicShareWatcher() { InitializeComponent(); Thread.CurrentThread.Name = "MusicShareWatcherApp"; bMonitoring = true; // Setup the Watching watcher = new MusicShareWatcherHelper(); watcher.SetMonitoring(true); watcher.StartMonitor(); }
public void Start() { using (Settings xmlreader = new MPSettings()) { _monitor = xmlreader.GetValueAsBool("musicfiles", "monitorShares", false); } if (_monitor) { Log.Info("MusicShareWatcher Plugin {0} starting.", _version); watcher = new MusicShareWatcherHelper(); watcher.SetMonitoring(true); watcher.StartMonitor(); Log.Info("MusicShareWatcher Plugin now monitoring the shares."); } }
public void Start() { using (Settings xmlreader = new MPSettings()) { _monitor = xmlreader.GetValueAsBool("musicfiles", "monitorShares", false); } if (_monitor) { Log.Info("MusicShareWatcher Plugin {0} starting.", _version); watcher = new MusicShareWatcherHelper(); watcher.SetMonitoring(true); watcher.StartMonitor(); Log.Info("MusicShareWatcher Plugin now monitoring the shares."); } }
private void OnResume() { lock (syncResume) { if (!_suspended) { return; } // React only to the 1st wakeup event OS sends. Both PBT_APMRESUMEAUTOMATIC and // PBT_APMRESUMESUSPEND are received on manual wakeup. _suspended = false; if (watcher != null) { Log.Info(LogType.MusicShareWatcher, "Windows has resumed from standby/hibernate mode: Re-enabling file system watcher"); watcher.StartMonitor(); } } }