Event EnvironmentChanged
- Namespace
- IntentSharp
- Assembly
- IntentSharp.dll
Raised for every change the client finds in its environment (a target's schema, a document in its document store, the provider options), after the change's handlers ran and its Environment check was made. The sender is the client. A subscriber that throws is logged and never fails the operation. Subscribing starts the client following its document store, if it has one, so document changes are raised even before any target operation.
public event EventHandler<EnvironmentChange>? EnvironmentChanged
Returns
- EventHandler<EnvironmentChange>
- Raised for every change the client finds in its environment (a target's schema, a document in its document store, the provider options), after the change's handlers ran and its Environment check was made. The sender is the client. A subscriber that throws is logged and never fails the operation. Subscribing starts the client following its document store, if it has one, so document changes are raised even before any target operation.
Remarks
A change found during a target operation is raised on the operation's own flow; a change found in the background (a document change, new provider options, a model a provider does not serve) is raised on a thread pool thread. The first time the client looks at a source it compares it with the fingerprint recorded in its document store's state, so a change made while the application was stopped is raised with AcrossRestart set, and a source never recorded before is raised once, with no previous fingerprint.