Struct Transaction
- Namespace
- Shard.Gameplay.Universe.Transactions
- Assembly
- Shard.Gameplay.Universe.dll
A stack-only handle for a synchronous transaction scope.
public ref struct Transaction
- Inherited Members
Properties
Context
Gets the context for this transaction scope.
public TransactionContext Context { get; }
Property Value
Methods
Commit()
Commits the scope and closes it.
public void Commit()
Dispose()
Rolls back the scope if it is still open.
public void Dispose()
OpenNested()
Opens a child savepoint. The child scope must close before this scope.
public Transaction OpenNested()
Returns
Rollback()
Rolls back the scope and closes it. The method restores the state from the start of the scope.
public void Rollback()