public PersistentMessage PeekById(string queueName, MessageId id) { PersistentMessage message = null; queueStorage.Global(actions => { var queue = actions.GetQueue(queueName); message = queue.PeekById(id); actions.Commit(); }); return message; }