void InitializeFSEventStream() { if (eventStream != null) { eventStream.Events -= OnFSEventStreamEvents; eventStream.Dispose(); eventStream = null; } if (Directory.Exists(currentWatchPath)) { Console.WriteLine("Creating new FSEventStream: latency={0}, path={1}", eventLatency, currentWatchPath); eventStreamIsRunning = false; eventStream = new FSEventStream(new [] { currentWatchPath }, eventLatency, FSEventStreamCreateFlags.FileEvents); eventStream.Events += OnFSEventStreamEvents; eventStream.ScheduleWithRunLoop(NSRunLoop.Current); EventStreamView.DataSource = eventsDataSource = new FSEventDataSource(); ToggleFSEventStream(); } }
public void Dispose() { if (fsEventStream != null) { fsEventStream.Dispose(); fsEventStream = null; } }
public void Dispose() { if (_eventStream != null) { _eventStream.Events -= eventStream_Events; _eventStream.Dispose(); } }
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; } }
public void Dispose() { _eventStream.Stop(); _eventStream.Events -= OnFSEventStreamEvents; _eventStream.Dispose(); }