Google.Cloud.Spanner.Data - Class SpannerTransactionBase (5.0.0-beta04)

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)

Commits the database transaction asynchronously.

Parameter
Name Description
cancellationToken CancellationToken

A cancellation token used for this task.

Returns
Type Description
Task

A task representing the asynchronous operation.

Overrides