Table of Contents

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

directories IEnumerable<string>
onReload Action
logger ILogger
debounce TimeSpan?

Properties

WatcherCount

Number of active file system watchers.

public int WatcherCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()