<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.2" />

Microsoft.Extensions.Configuration.ConfigurationReloadToken

public class ConfigurationReloadToken : IChangeToken
Propagates notifications that a configuration change has occurred.
public bool ActiveChangeCallbacks { get; }

Gets a value that indicates whether this token proactively raises callbacks. Callbacks are still guaranteed to be invoked, eventually.

public bool HasChanged { get; }

Gets a value that indicates if a change has occurred.

public void OnReload()

Triggers the change token when a reload occurs.

public IDisposable RegisterChangeCallback(Action<object> callback, object state)

Registers for a callback that will be invoked when the entry has changed. HasChanged MUST be set before the callback is invoked.