Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
		public void Dispose()
		{
			if (fsEventStream != null) {
				fsEventStream.Dispose();
				fsEventStream = null;
			}
		}
Ejemplo n.º 3
0
 public void Dispose()
 {
     if (_eventStream != null)
     {
         _eventStream.Events -= eventStream_Events;
         _eventStream.Dispose();
     }
 }
Ejemplo n.º 4
0
 public void EndFSEventStream()
 {
     if (fsEventStreamStarted)
     {
         fsEventStream.Stop();
         fsEventStream.Invalidate();
     }
     fsEventStream.Dispose();
 }
Ejemplo n.º 5
0
        void StopMonitoringExternalCssChanges()
        {
            if (fsEventStream != null)
            {
                Log.Info(TAG, "Stopping CSS monitor");

                fsEventStream.Stop();
                fsEventStream.Dispose();
                fsEventStream = null;
            }
        }
Ejemplo n.º 6
0
 public void Dispose()
 {
     _eventStream.Stop();
     _eventStream.Events -= OnFSEventStreamEvents;
     _eventStream.Dispose();
 }