Google.Cloud.Spanner.Data - Class SpannerTransactionBase (4.1.0)

public abstract class SpannerTransactionBase : DbTransaction, IDbTransaction, IDisposable, IAsyncDisposable

Reference documentation and code samples for the Google.Cloud.Spanner.Data class SpannerTransactionBase.

Base class for SpannerTransaction, used for compatibility purposes with DbTransaction. (This class is able to override a new method added to DbTransaction, even if it clashes with an existing method declaration in SpannerTransaction.)

Inheritance

Object > MarshalByRefObject > DbTransaction > SpannerTransactionBase

Derived Types

Namespace

Google.Cloud.Spanner.Data

Assembly

Google.Cloud.Spanner.Data.dll

Methods

CommitAsync(CancellationToken)

public override Task CommitAsync(CancellationToken cancellationToken = default(CancellationToken))

Commits the database transaction asynchronously.

Parameter
NameDescription
cancellationTokenCancellationToken

A cancellation token used for this task.

Returns
TypeDescription
Task

A task representing the asynchronous operation.

Overrides