private void OnFSEventStreamEvents(object sender, FSEventStreamEventsArgs e) { _eventStream.Stop(); System.Diagnostics.Debug.WriteLine("Received an event"); foreach (var ev in e.Events) { System.Diagnostics.Debug.WriteLine(ev.Flags); System.Diagnostics.Debug.WriteLine(ev.Path); } var t = new EventArgs(); Events?.Invoke(this, t); _eventStream.Start(); }
public void EndFSEventStream() { if (fsEventStreamStarted) { fsEventStream.Stop(); fsEventStream.Invalidate(); } fsEventStream.Dispose(); }
void StopMonitoringExternalCssChanges() { if (fsEventStream != null) { Log.Info(TAG, "Stopping CSS monitor"); fsEventStream.Stop(); fsEventStream.Dispose(); fsEventStream = null; } }
void ToggleFSEventStream() { if (eventStreamIsRunning) { eventStream.Stop(); eventStreamIsRunning = false; StartStopButton.Title = "Start"; } else { eventStream.Start(); eventStreamIsRunning = true; StartStopButton.Title = "Stop"; } }
public void Stop() { isStarted = false; eventStream.Stop(); }
public void Stop() { _eventStream.Stop(); }