Open sandboxFocus

Interface IRecordableCallback

Defines callback methods that are invoked when a recordable object is involved in an undo or redo operation.

Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model.dll
Syntax
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public interface IRecordableCallback
Remarks

The Recorder invokes these methods on each recordable object that an undo or redo operation affects. The order in which objects are called is not specified and does not follow the parent-child structure.

Callback methods must not make changes that would be recorded, and must not call the Undo(), Redo() or AddRestorePoint(string) method.

Methods

Name Description
OnReplayed(ReplayKind, ReplayContext)

Method invoked after the undo or redo operation has completed.

OnReplaying(ReplayKind, ReplayContext)

Method invoked before the undo or redo operation has started.

See Also