Should be overriden in a derived class to perform consistency checks for a TCheckedStructure.
public abstract IEnumerable<ConsistencyError> Check(TCheckedStructure structure, IModel model)| parameter | description |
|---|---|
| structure | The IStructure to be checked for consistency by this method. |
| model | Representation of the app model. Immutable. |
List of ConsistencyError errors found in the structure.
Check is invoked after Studio Pro starts up or after the app structure has changed. Studio Pro heavily optimizes the consistency check process by tracking what model elements Check method accesses, and re-running it only when these elements change. Hence it is adviced to access as few model elements as possible in one ConsistencyCheckExtension. Note that multiple consistency check can be ran in parallel and that one consistency check can be ran over multiple threads. Do not make any assumptions about order of execution of Check and do not rely on state in ConsistencyCheckExtension.
- class ConsistencyError
- interface IModel
- class ConsistencyCheckExtension<TCheckedStructure>
- namespace Mendix.StudioPro.ExtensionsAPI.ConsistencyCheck