PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording Namespace
PostSharp.Patterns.Recording Namespace
The PostSharp.Patterns.Recording namespace implements the undo/redo feature.
Classes
  Class Description
Public class EditableObjectAttribute
Custom attribute that, when applied to a class, implements IEditableObject into this class.
Public class NotRecordedAttribute
Custom attribute that, when applied to field or property, specifies that it should not be affected by the RecordableAttribute aspect. Therefore, changes to this field or property will not be recorded into a Recorder, and will not be affected by undo/redo operations.
Public class Operation
Base class for all operations. An operation is any change of state that can be appended to a Recorder and be therefore involved in an undo/redo operation.
Public class OperationCollection
Read-only collection of operations (Operation). The class is exposed on the UndoOperations and RedoOperations properties.
Public class OperationFormatter
Base class for all operation formatters, which provide a human-readable description of operations (Operation).
Public class RecordableAttribute
Custom attribute that, when applied to a class, instruments fields and methods of this class so that it can be involved in undo/redo operations.
Public class Recorder
Records changed done on an object model and allow to undo and redo them.
Public class RecorderProvider
Abstract class that represents a node in the chain of responsibility, starting at the RecorderProvider property, whose role is to provide a default Recorder to recordable objects.
Public class RecordingScope
Defines the scope a logical operation, that is, a set of change that should be undone or redone as a whole.
Public class RecordingScopeAttribute
Custom attribute that, when applied to a method, defines the characteristics of the RecordingScope that corresponds to the target method.
Public class RecordingServices
Provides global methods to work with the PostSharp.Patterns.Recording namespace.
Public class ReplayContext
Represents the context of an undo or redo operation. The class gives access to system-defined and user-defined pieces of information.
Public class RestorePoint
Represents a point to which operations can be undone or redone. A RestorePoint is a pseudo-Operation that does not represent any change.
Interfaces
  Interface Description
Public interface IRecordable
Interface implemented by the RecordableAttribute aspect.
Public interface IRecordableCallback
Defines callback methods that are invoked when a recordable object is involved in an undo or redo operation.
Enumerations
  Enumeration Description
Public enumeration MergeStatus
Enumeration of possible return values for the GetMergeStatus(Operation) method.
Public enumeration OperationKind
Enumeration of different kinds of Operation
Public enumeration RecordingScopeOption
Enumerates the kinds of recording scope.
Public enumeration ReplayKind
Enumerates the kind of situations in which the OnReplaying(ReplayKind, ReplayContext) or OnReplayed(ReplayKind, ReplayContext) methods are invoked.