Show / Hide Table of Contents

Class ModelChangeRecorder

Represents a recorder for changes to a model.

Inheritance
object
ModelChangeRecorder
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Models.Changes
Assembly: NMF.Models.dll
Syntax
public class ModelChangeRecorder

Constructors

| Edit this page View Source

ModelChangeRecorder()

Creates a new instance

Declaration
public ModelChangeRecorder()
| Edit this page View Source

ModelChangeRecorder(bool)

Creates a new instance

Declaration
[Obsolete("isInvertible is actually ignored")]
public ModelChangeRecorder(bool isInvertible)
Parameters
Type Name Description
bool isInvertible

ignored

Properties

| Edit this page View Source

AttachedElement

Gets the attached model element or null, if the recorder is not attached.

Declaration
public IModelElement AttachedElement { get; }
Property Value
Type Description
IModelElement
| Edit this page View Source

IsRecording

Checks whether the recorder is attached to a model element.

Declaration
public bool IsRecording { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

GetModelChanges()

Returns previously recorded changes in a tree hierarchy.

Declaration
public ModelChangeSet GetModelChanges()
Returns
Type Description
ModelChangeSet
| Edit this page View Source

GetModelChangesAsync()

Starts a new task to get model changes asynchronously

Declaration
public Task<ModelChangeSet> GetModelChangesAsync()
Returns
Type Description
Task<ModelChangeSet>
| Edit this page View Source

Start(IModelElement)

Attaches the recorder to the given model element. The recorder will track all changes made to the given element and every element further down in the containment hierarchy.

Declaration
public void Start(IModelElement element)
Parameters
Type Name Description
IModelElement element
| Edit this page View Source

Stop()

Detaches the recorder, stopping the change tracking.

Declaration
public void Stop()
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX