InMemoryTransactionManager InMemoryTransactionManager Class

Definition

public class InMemoryTransactionManager : IDbContextTransactionManager
Public Class InMemoryTransactionManager
    Implements IDbContextTransactionManager
Inheritance
System.ObjectSystem.Object
InMemoryTransactionManagerInMemoryTransactionManager
Implements

Inherited Members

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

InMemoryTransactionManager(ILogger) InMemoryTransactionManager(ILogger(Of InMemoryTransactionManager))

public InMemoryTransactionManager(ILogger<InMemoryTransactionManager> logger)
Public Sub New(logger As ILogger(Of InMemoryTransactionManager))
Parameters

Properties

CurrentTransaction CurrentTransaction

public virtual IDbContextTransaction CurrentTransaction { get; }
Public Overridable ReadOnly Property CurrentTransaction As IDbContextTransaction

Methods

BeginTransaction() BeginTransaction()

public virtual IDbContextTransaction BeginTransaction()
Public Overridable Function BeginTransaction As IDbContextTransaction
Returns

BeginTransactionAsync(CancellationToken) BeginTransactionAsync(CancellationToken)

public virtual Task<IDbContextTransaction> BeginTransactionAsync(CancellationToken cancellationToken = null)
Public Overridable Function BeginTransactionAsync(cancellationToken As CancellationToken = Nothing) As Task(Of IDbContextTransaction)
Parameters
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<IDbContextTransaction> System.Threading.Tasks.Task(Of IDbContextTransaction)

CommitTransaction() CommitTransaction()

public virtual void CommitTransaction()
Public Overridable Sub CommitTransaction

LogWarning() LogWarning()

protected virtual void LogWarning()
Protected Overridable Sub LogWarning

RollbackTransaction() RollbackTransaction()

public virtual void RollbackTransaction()
Public Overridable Sub RollbackTransaction