November Happy Hour will be moved to Thursday December 5th.

Class DataTransaction

A class to represent a way to ensure data transaction. Use this to ensure certain actions have to be done when data is committed.

Inheritance
System.Object
DataTransaction
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Data.Provider
Assembly: Mediachase.DataProvider.dll
Version: 13.30.0
Syntax
public abstract class DataTransaction : IDisposable
Remarks

The default implementation is TransactionScope. To handle data transaction in a different way, implement this class and register that implementation in one of the initialization modules.

Constructors

DataTransaction()

Declaration
protected DataTransaction()

Methods

Commit()

Commits data, will run actions added by RunOnCommit(Action).

Declaration
public abstract void Commit()

Dispose()

Declaration
public abstract void Dispose()

RunOnCommit(Action)

Adds an action to run when data is committed.

Declaration
public abstract void RunOnCommit(Action action)
Parameters
Type Name Description
System.Action action

Action to be run.

Remarks

Can be called multiple times to add multiple actions.

Implements

System.IDisposable