Class EnvironmentChange
- Namespace
- IntentSharp.ChangeDetection
- Assembly
- IntentSharp.dll
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.
public sealed class EnvironmentChange
- Inheritance
-
objectEnvironmentChange
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Remarks
The client runs the registered IEnvironmentChangeHandlers for each change, then checks it at the Environment checkpoint, then raises EnvironmentChanged. A change carries names, paths and fingerprints, never a value read from a target or a document.
Constructors
- EnvironmentChange()
Creates a change; the client creates these.
Properties
- AcrossRestart
True when the client found the change the first time it looked at the source, against a fingerprint recorded in its document store's state before it started: the change was made while the application, or this client, was not running. Always false for a client with no document store, which records fingerprints in memory only.
- CurrentFingerprint
The source's fingerprint now: for a target, the digest of its probe token, or of its description when it has no probe; for a document or the provider file, the content hash of its running version. Equal to PreviousFingerprint for a change that is a signal rather than a new version, such as a model a provider does not serve.
- Delta
How a target's description differs from the recorded one; null for a change that is not a target's schema. When no description was recorded, every entity is listed as added.
- Detail
A short note on the change, such as
model unavailable: main; null for none. It never holds a value read from a source.
- DetectedAt
When the client found the change.
- Kind
What changed.
- PreviousFingerprint
The fingerprint the client had recorded for the source; null when it had recorded none, as the first time a target is described or a document is seen.
- Source
Where the change was found: the target's name for TargetSchema, the document's path for Document,
providersfor ProviderOptions, and<namespace>/<key>for MappingShape. Rule files see it asenvironment.source.