Open sandboxFocus

Class CompositeOperation

Represents an Operation composed of other sub-operations.

Inheritance
CompositeOperation
Namespace: PostSharp.Patterns.Recording.Operations
Assembly: PostSharp.Patterns.Model.dll
Syntax
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public sealed class CompositeOperation : Operation, IOperationDescriptor
Remarks

The OperationDescriptor is typically not identical to the CompositeOperation itself.

The logical operations that the UndoOperations and RedoOperations collections expose to users are typically composite operations that group the primitive changes made within a RecordingScope.

Properties

Name Description
OperationDescriptor

Gets the IOperationDescriptor, which is used by the OperationFormatter to produce a human-readable description of the current operation.

OperationKind

Gets the kind of operation.

Methods

Name Description
Redo(ReplayContext)

Redoes the current operation.

Undo(ReplayContext)

Undoes the current operation.

VisitAffectedObjects(Action<object>)

Executes a given action on all recordable objects involved with the current Operation.

See Also