Example #1
0
 private void ChangeTracker_Changed(object sender, FileChangeEventArgs e)
 {
     if (e.Kind == FileChangeKind.Changed)
     {
         _changedOnDisk?.Invoke(this, EventArgs.Empty);
     }
 }
        private void OnChanged(FileChangeKind changeKind)
        {
            _foregroundDispatcher.AssertForegroundThread();

            var args = new FileChangeEventArgs(FilePath, changeKind);

            Changed?.Invoke(this, args);
        }
Example #3
0
        private void OnChanged(FileChangeKind changeKind)
        {
            _joinableTaskContext.AssertUIThread();

            if (Changed == null)
            {
                return;
            }

            var args = new FileChangeEventArgs(FilePath, changeKind);

            Changed.Invoke(this, args);
        }