예제 #1
0
        /// <summary>
        /// Commit this transaction to the back-end using an asynchronous API, where available.
        /// </summary>
        public Task CommitAsync()
        {
            AssertNotFinalised();

            if (mayCommitAndDispose)
            {
                return(transaction.CommitAsync());
            }

            IsFinal = true;
            return(Task.CompletedTask);
        }