Google.Cloud.Spanner.Data - Class SpannerTransactionBase (4.4.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

GoogleCloudGoogle.Cloud.SpannerData

Assembly

Google.Cloud.Spanner.Data.dll

Methods

CommitAsync(CancellationToken)

public override Task CommitAsync(CancellationToken cancellationToken = default)

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