Breyta

Deila með


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
AtomicComposition
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()

Initializes a new instance of the AtomicComposition class.

AtomicComposition(AtomicComposition)

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

Methods

AddCompleteAction(Action)

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

AddRevertAction(Action)

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

Complete()

Marks this composition operation as complete.

Dispose()

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

Dispose(Boolean)

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

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetValue(Object, Object)

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)
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)

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

Applies to