ChangeToken
Propagates notifications that a change has occurred.
public static IDisposable OnChange(Func<IChangeToken> changeTokenProducer, Action changeTokenConsumer)
Registers the changeTokenConsumer action to be called whenever the token produced changes.
public static IDisposable OnChange<TState>(Func<IChangeToken> changeTokenProducer, Action<TState> changeTokenConsumer, TState state)
Registers the changeTokenConsumer action to be called whenever the token produced changes.