<PackageReference Include="Microsoft.Extensions.Primitives" Version="10.0.0-rc.1.25451.107" />

IChangeToken

public interface IChangeToken
Propagates notifications that a change has occurred.
using System; using System.Runtime.CompilerServices; namespace Microsoft.Extensions.Primitives { [NullableContext(1)] public interface IChangeToken { bool HasChanged { get; } bool ActiveChangeCallbacks { get; } IDisposable RegisterChangeCallback([Nullable(new byte[] { 1, 2 })] Action<object> callback, [Nullable(2)] object state); } }