Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Extensions.​Primitives.​ChangeToken
Assembly: Microsoft.Extensions.Primitives
Inheritance: object → ChangeToken
Propagates notifications that a change has occurred.
Methods
public static
System.​IDisposable
OnChange​(System.​Func<​IChangeToken> changeTokenProducer,
System.​Action changeTokenConsumer)
Registers the <paramref name="changeTokenConsumer" /> action to be called whenever the token produced changes.
changeTokenProducer
Produces the change token.
changeTokenConsumer
Action called when the token changes.
public static
System.​IDisposable
OnChange​(System.​Func<​IChangeToken> changeTokenProducer,
System.​Action<​TState> changeTokenConsumer,
TState state)
Registers the <paramref name="changeTokenConsumer" /> action to be called whenever the token produced changes.
changeTokenProducer
Produces the change token.
changeTokenConsumer
Action called when the token changes.
state
state for the consumer.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object