Example #1
0
        public async Task <TResult> RunTransactionAsync <TResult>(Func <ITransaction, TResult> updateFunc)
        {
            var result = await _firestore.RunTransaction(new TransactionFunction <TResult>(updateFunc));

            return((TResult)result?.ToObject(typeof(TResult)));
        }