/// <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); }