Exemple #1
0
 /// <summary>Snippet for BeginTransaction</summary>
 public void BeginTransaction()
 {
     // Snippet: BeginTransaction(string, CallSettings)
     // Create client
     FirestoreClient firestoreClient = FirestoreClient.Create();
     // Initialize request argument(s)
     string database = "";
     // Make the request
     BeginTransactionResponse response = firestoreClient.BeginTransaction(database);
     // End snippet
 }
 /// <summary>Snippet for BeginTransaction</summary>
 public void BeginTransaction()
 {
     // Snippet: BeginTransaction(string,CallSettings)
     // Create client
     FirestoreClient firestoreClient = FirestoreClient.Create();
     // Initialize request argument(s)
     string formattedDatabase = new DatabaseRootName("[PROJECT]", "[DATABASE]").ToString();
     // Make the request
     BeginTransactionResponse response = firestoreClient.BeginTransaction(formattedDatabase);
     // End snippet
 }
 /// <summary>Snippet for BeginTransaction</summary>
 public void BeginTransaction_RequestObject()
 {
     // Snippet: BeginTransaction(BeginTransactionRequest,CallSettings)
     // Create client
     FirestoreClient firestoreClient = FirestoreClient.Create();
     // Initialize request argument(s)
     BeginTransactionRequest request = new BeginTransactionRequest
     {
         Database = new DatabaseRootName("[PROJECT]", "[DATABASE]").ToString(),
     };
     // Make the request
     BeginTransactionResponse response = firestoreClient.BeginTransaction(request);
     // End snippet
 }
Exemple #4
0
 /// <summary>Snippet for BeginTransaction</summary>
 public void BeginTransactionRequestObject()
 {
     // Snippet: BeginTransaction(BeginTransactionRequest, CallSettings)
     // Create client
     FirestoreClient firestoreClient = FirestoreClient.Create();
     // Initialize request argument(s)
     BeginTransactionRequest request = new BeginTransactionRequest
     {
         Database = "",
         Options  = new TransactionOptions(),
     };
     // Make the request
     BeginTransactionResponse response = firestoreClient.BeginTransaction(request);
     // End snippet
 }