Used to group two or more cross-domain write operations into a reliable-write that prevents partial-data loss in the event of a system failure.

Namespace: Simol.Consistency
Assembly: Simol (in Simol.dll) Version: 1.0.0.0

Syntax

C#
public class ReliableWriteScope : IDisposable
Visual Basic
Public Class ReliableWriteScope _
	Implements IDisposable
Visual C++
public ref class ReliableWriteScope : IDisposable

Remarks

To use a reliable-write for a group of operations, create an instance of this class, invoke Commit()()()(), and dispose the instance.

All put and delete operations on the current thread for the life of the instance will be grouped into a single reliable-write. For example:

CopyC#
// all put operations in the using block will be part of the same reliable-write
using (var write = new ReliableWriteScope(writeMonitor)) {
    Simol.Put(person);
    Simol.Put(employees);
    write.Commit();
}

Note: A maxiumum of 25 puts, batch-puts, or deletes may be performed in the scope of a single reliable-write.

Inheritance Hierarchy

System..::..Object
  Simol.Consistency..::..ReliableWriteScope

See Also