public enum DisposeBehavior
Reference documentation and code samples for the Google.Cloud.Spanner.Data enum DisposeBehavior.
Defines the behavior of SpannerTransaction when Dispose is called.
Namespace
Google.Cloud.Spanner.DataAssembly
Google.Cloud.Spanner.Data.dll
Fields | |
---|---|
Name | Description |
CloseResources | Automatically closes resources when Dispose(Boolean) is called. |
Detach | Detaches from the transaction and leaves resources still allocated. You must set DisposeBehavior to CloseResources on at least one instance to ensure there are no resource leaks when doing parallel reads. |
ReleaseToPool | Releases transactional resources back to the global pool when Dispose(Boolean) is called. This option is not valid for shared transactions (see GetReaderPartitionsAsync(Nullable<Int64>, Nullable<Int64>, CancellationToken)). |