public PersistentMessageToSend[] GetMessagesCurrentlySending() { AssertNotDisposedOrDisposing(); PersistentMessageToSend[] msgs = null; queueStorage.Send(actions => { msgs = actions.GetMessagesToSend().ToArray(); actions.Commit(); }); return msgs; }