void IInit.Init() { LifeCycleAddConfig config = new LifeCycleAddConfig(); config.Init(); InitObject(config); LifeCycleConfig.LifecycleFuncs[LifeName.INIT](); }
private void InitObject(LifeCycleAddConfig config) { foreach (object o in config._objects) { foreach (var lifeCycle in LifeCycleConfig.Lifecycles) { if (lifeCycle.Value.Add(o)) { break; } } } }