public void Complete() => Shield.InTransaction(() => { if (!Self._transactions.Remove(TransactionId)) { return; } Self.UnlockFields(this); Shield.SideEffect(() => { PrepareCompleter.TrySetResult(new PrepareResult(false)); Committer.TrySetResult(null); }); });
public void Complete() => Shield.InTransaction(() => { if (!Self._transactions.Remove(TransactionId)) { return; } Self._logger.LogDebug("Completing backend state of {TransactionId}", TransactionId); Self.UnlockFields(this); Shield.SideEffect(() => { PrepareCompleter.TrySetResult(new PrepareResult(false)); Committer.TrySetResult(null); }); });