Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.69 KB

File metadata and controls

29 lines (19 loc) · 1.69 KB

ConsistencyCheckExtension<TCheckedStructure>.Check method

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.

Return Value

List of ConsistencyError errors found in the structure.

Remarks

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.

See Also