Table of Contents

Class KafkaTransaction

Namespace
MASES.EntityFrameworkCore.KNet.Storage.Internal
Assembly
MASES.EntityFrameworkCore.KNet.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class KafkaTransaction : IDbContextTransaction, IDisposable, IAsyncDisposable
Inheritance
KafkaTransaction
Implements
Inherited Members

Properties

TransactionId

Gets the transaction identifier.

public virtual Guid TransactionId { get; }

Property Value

Guid

Remarks

See Transactions in EF Core for more information and examples.

Methods

Commit()

Commits all changes made to the database in the current transaction.

public virtual void Commit()

Remarks

See Transactions in EF Core for more information and examples.

CommitAsync(CancellationToken)

Commits all changes made to the database in the current transaction asynchronously.

public virtual Task CommitAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

Task

A Task representing the asynchronous operation.

Remarks

See Transactions in EF Core for more information and examples.

Exceptions

OperationCanceledException

If the CancellationToken is canceled.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public virtual void Dispose()

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public virtual ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.

Rollback()

Discards all changes made to the database in the current transaction.

public virtual void Rollback()

Remarks

See Transactions in EF Core for more information and examples.

RollbackAsync(CancellationToken)

Discards all changes made to the database in the current transaction asynchronously.

public virtual Task RollbackAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

Task

A Task representing the asynchronous operation.

Remarks

See Transactions in EF Core for more information and examples.

Exceptions

OperationCanceledException

If the CancellationToken is canceled.