Пример #1
0
        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();
        }
Пример #2
0
 public void EndFSEventStream()
 {
     if (fsEventStreamStarted)
     {
         fsEventStream.Stop();
         fsEventStream.Invalidate();
     }
     fsEventStream.Dispose();
 }
Пример #3
0
        void StopMonitoringExternalCssChanges()
        {
            if (fsEventStream != null)
            {
                Log.Info(TAG, "Stopping CSS monitor");

                fsEventStream.Stop();
                fsEventStream.Dispose();
                fsEventStream = null;
            }
        }
Пример #4
0
 void ToggleFSEventStream()
 {
     if (eventStreamIsRunning)
     {
         eventStream.Stop();
         eventStreamIsRunning  = false;
         StartStopButton.Title = "Start";
     }
     else
     {
         eventStream.Start();
         eventStreamIsRunning  = true;
         StartStopButton.Title = "Stop";
     }
 }
Пример #5
0
 public void Stop()
 {
     isStarted = false;
     eventStream.Stop();
 }
Пример #6
0
 public void Stop()
 {
     _eventStream.Stop();
 }