Class RecordingWatcher
- Namespace
- Kuestenlogik.Bowire.Mock.Loading
- Assembly
- Kuestenlogik.Bowire.Mock.dll
Watches a recording file on disk and invokes a callback with a freshly parsed BowireRecording whenever the file changes. Changes are debounced so a flurry of saves (editors often write-then-rename) only produces a single reload. A parse failure after a change is logged but never throws — the mock keeps serving the previously loaded recording.
public sealed class RecordingWatcher : IDisposable
- Inheritance
-
RecordingWatcher
- Implements
- Inherited Members
Constructors
RecordingWatcher(string, string?, Action<BowireRecording>, ILogger?, TimeSpan?)
public RecordingWatcher(string path, string? select, Action<BowireRecording> onReload, ILogger? logger = null, TimeSpan? debounce = null)
Parameters
Methods
Dispose()
public void Dispose()