/// <summary> /// 初始化 /// </summary> /// <param name="appName"></param> public static void Initialize(string appName) { lock (Locker) { ReplaceConfigFile(appName); ReplaceIocFile(appName); ReplaceValidationFile(appName); ReplaceDbRouteFile(appName); LoadSettings(appName, @"Config\Url.config"); LoadSettings(appName, @"Config\App.config"); LoadSettings(appName, @"Config\ThirdParty.config"); Creator.ConfigFile = @"Config\config.config"; LoadSettings(appName); Creator.Get <IKey>().Initialize(); Creator.AddHandle(Creator.Get <IKey>().Initialize); } }