Namespace IntentSharp.ChangeDetection
Classes
- EntityDelta
How a target's description differs from the one the client recorded before: the entities added, removed and changed, and, within each changed entity, the fields added, removed and changed. An entity is named as rule files name it (its path joined with dots, such as
dbo.orders) and a field as<entity>.<field>.
- EnvironmentChange
One change the client found in its environment: a target's schema, a document, the provider options or the shape of a compiled mapping's input, with the fingerprints before and after. The client finds a change by comparing fingerprints with the ones it recorded in its document store's state, so a change made while the application was stopped is found at the next start.
- EnvironmentChangeContext
What an IEnvironmentChangeHandler receives with a change: the client, the current description of a changed target, the recompile cap, and the ways to report the model calls it made and the work it could not finish. The client creates one per change; a handler uses it only while it handles that change.
- MaintenanceReport
What the environment change handlers did during one operation: the changes they handled, the model calls they reported and their token usage, the problems met and the rule sets they could not bring up to date. These calls are the library's maintenance, reported apart from the operation's own planning call.
Interfaces
- IEnvironmentChangeHandler
Acts on a change the client found in its environment, such as recompiling the rules written for a target whose schema changed. Register one with AddEnvironmentChangeHandler(IEnvironmentChangeHandler), or in dependency injection as an IEnvironmentChangeHandler for a client built by
AddIntentSharp.
Enums
- EnvironmentChangeKind
What changed in the environment, as an EnvironmentChange reports it. Rule files see it in
environment.kindastargetSchema,document,providerOptions,mappingShapeorother.