public sealed class TransactionOptions
Immutable class representing options for executing transactions.
Namespace
Google.Cloud.FirestoreAssembly
Google.Cloud.Firestore.dll
Properties
Default
public static TransactionOptions Default { get; }
The transaction options that are used if nothing is specified by the caller.
Property Value | |
---|---|
Type | Description |
TransactionOptions |
MaxAttempts
public int MaxAttempts { get; }
The number of times the transaction will be attempted before failing.
Property Value | |
---|---|
Type | Description |
Int32 |
Methods
ForMaxAttempts(Int32)
public static TransactionOptions ForMaxAttempts(int maxAttempts)
Creates an instance with the given maximum number of attempts.
Parameter | |
---|---|
Name | Description |
maxAttempts | Int32 The number of times a transaction will be attempted before failing. Must be positive. |
Returns | |
---|---|
Type | Description |
TransactionOptions | A new options object. |