At the dedication of the wall of Jerusalem, etc. The city had already been built for some time, but it was not fitting to dedicate it until inhabitants were gathered, appropriate ministers for the temple were assigned, and guards were appointed for the gates and vestibules. Once the holy city is established, it is dedicated when, at the end of the age, the number of the elect is completed and the Universal Church is brought into heaven to behold its Creator. Whenever we are uplifted in this life with the desires for that life, we rejoice as if at the dedication of our figurative city. Thus, this same dedication can be understood in two ways signification-wise: at one time, in the hope of those desiring and purifying the eyes of their heart, by which they may be able to see God; and then in the actual enjoyment of the divine vision by blessed people in spiritual bodies among the angelic host of spirits.
Source: Commentary on Ezra and Nehemiah