Class PolicyWatcher
- Namespace
- JD.AI.Core.Governance
- Assembly
- JD.AI.Core.dll
Watches policy directories for changes and triggers reload callbacks. Uses FileSystemWatcher with debouncing to avoid spurious reloads.
public sealed class PolicyWatcher : IDisposable
- Inheritance
-
PolicyWatcher
- Implements
- Inherited Members
Constructors
PolicyWatcher(IEnumerable<string>, Action, ILogger?, TimeSpan?)
public PolicyWatcher(IEnumerable<string> directories, Action onReload, ILogger? logger = null, TimeSpan? debounce = null)
Parameters
directoriesIEnumerable<string>onReloadActionloggerILoggerdebounceTimeSpan?
Properties
WatcherCount
Number of active file system watchers.
public int WatcherCount { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()