Class TransactionHooks
The transaction a context takes part in - its explicit redb transaction, else the ambient
- and a callback for its end. One place for what the cache publication and the
lazy-load rule both need (review after 4.0.0).
public static class TransactionHooks
Inheritance
Methods
OnCompleted(IRedbContext, Action<bool>)
Runs onCompleted with whether the transaction committed once the context's transaction
public static bool OnCompleted(IRedbContext context, Action<bool> onCompleted)
TransactionOf(IRedbContext)
The transaction object the context takes part in, or null outside any transaction.
public static object? TransactionOf(IRedbContext context)