public abstract class SpannerTransactionBase : DbTransaction, IDbTransaction, IDisposable, IAsyncDisposable
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.)
Derived Types
Namespace
Google.Cloud.Spanner.DataAssembly
Google.Cloud.Spanner.Data.dll
Methods
CommitAsync(CancellationToken)
public override Task CommitAsync(CancellationToken cancellationToken = default(CancellationToken))
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. |