Vixen
feb85697
csharp
public interface IFileWatcher

Watches part of the virtual file system and reports settled changes.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (3)

  • VirtualPath Root

    The virtual path this watcher covers.

  • TimeSpan Debounce

    How long a path must be quiet before its change is reported.

  • bool HasOverflowed

    Whether events were lost since the last ClearOverflow, meaning the only correct response is to rescan.

Methods (4)

  • void Suppress(VirtualPath path)

    Ignores events for a path that this program is about to write.

  • void Observed()

    Says the consumer has just rescanned everything, so a creation still pending is no longer news a deletion can cancel.

  • int Drain(ICollection<FileChange> into)

    Takes every change whose debounce window has closed.

  • void ClearOverflow()

    Acknowledges an overflow after rescanning.

Used by (8)

  • FileWatcherVixen.Core.IO
  • ExternalEditsVixen.Editor.Core
  • ExternalEditsTestsVixen.Editor.Core.Tests
  • ProjectSessionVixen.Editor.App
  • ProjectSessionTestsVixen.Editor.App.Tests
  • ReplayWatcherVixen.Editor.App.Tests
  • ScriptsModuleVixen.Editor.Scripts
  • StubWatcherVixen.Editor.Core.Tests