生命周期钩子

    考虑下面的图表:

    生命周期钩子注册在。 如上图所示,有四种生命周期钩子 — globalsinitializersdestructors,。 Each of these has its own corresponding root-level setting in the configuration, and both globals and have their own chapters. 本章将介绍另外两种设置。