private void Commit() { lock(this.dispatchedMessages) { this.dispatchedMessages.Clear(); } this.redeliveryDelay = 0; }