AtomicComposition AtomicComposition AtomicComposition AtomicComposition Class

Definition

Represents a single composition operation for transactional composition.

public ref class AtomicComposition : IDisposable
public class AtomicComposition : IDisposable
type AtomicComposition = class
    interface IDisposable
Public Class AtomicComposition
Implements IDisposable
Inheritance
AtomicCompositionAtomicCompositionAtomicCompositionAtomicComposition
Implements

Remarks

Important

This type implements the IDisposable interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of the type directly, call its Dispose method in a try/catch block. To dispose of it indirectly, use a language construct such as using (in C#) or Using (in Visual Basic). For more information, see the "Using an Object that Implements IDisposable" section in the IDisposable interface topic.

Constructors

AtomicComposition() AtomicComposition() AtomicComposition() AtomicComposition()

Initializes a new instance of the AtomicComposition class.

AtomicComposition(AtomicComposition) AtomicComposition(AtomicComposition) AtomicComposition(AtomicComposition) AtomicComposition(AtomicComposition)

Initializes a new instance of the AtomicComposition class with the specified parent AtomicComposition.

Methods

AddCompleteAction(Action) AddCompleteAction(Action) AddCompleteAction(Action) AddCompleteAction(Action)

Adds an action to be executed when the overall composition operation completes successfully.

AddRevertAction(Action) AddRevertAction(Action) AddRevertAction(Action) AddRevertAction(Action)

Adds an action to be executed if the overall composition operation fails.

Complete() Complete() Complete() Complete()

Marks this composition operation as complete.

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the current instance of the AtomicComposition class, and mark this composition operation as failed.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the AtomicComposition and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetValue(Object, Object) SetValue(Object, Object) SetValue(Object, Object) SetValue(Object, Object)

Saves a key-value pair in the transaction to track tentative state.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetValue<T>(Object, Boolean, T) TryGetValue<T>(Object, Boolean, T) TryGetValue<T>(Object, Boolean, T) TryGetValue<T>(Object, Boolean, T)

Gets a value saved by the SetValue(Object, Object) method, with the option of not searching parent transactions.

TryGetValue<T>(Object, T) TryGetValue<T>(Object, T) TryGetValue<T>(Object, T) TryGetValue<T>(Object, T)

Gets a value saved by the SetValue(Object, Object) method.

Applies to