public PersistentMessageToSend[] GetAllSentMessages() { AssertNotDisposedOrDisposing(); PersistentMessageToSend[] msgs = null; queueStorage.Global(actions => { msgs = actions.GetSentMessages().ToArray(); actions.Commit(); }); return msgs; }