string phyShellApp = PhyPathUtil.ConvertVirToPhyPath($"~/Config/ShellApp/{ownerId}");
            if (FileUtil.ExistsDirByVirPath(phyShellApp))
            {
                LoadShellApp(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "app.json");
                LoadShellApp(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "hosting.json");
                LoadShellApp(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "redis.provider.json");
                LoadShellApp(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "cap.provider.json");
                LoadShellApp(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "elasticsearch.provider.json");
                LoadShellApp(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "mongodb.provider.json");

                //IFileProvider _glogalProviderT = new PhysicalFileProvider(phyShellApp);
                //Log.Warning($"=========加载配置【~/Config/ShellApp】当前使用配置【{ownerId}】");
                //foreach (IFileInfo itemC in _glogalProviderT.GetDirectoryContents(""))
                //{
                //    if (!itemC.Name.EndsWith(".json")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.OsWindow}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.OsLinux}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.OsOsx}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.EnvDevelopment}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.EnvProduction}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.EnvStaging}.")) continue;
                //    if (itemC.Name.Contains($".{AppArgsUtil.GetDevelopmentConfigName()}.")) continue;
                //    if (itemC.Name.Contains($".rmt.")) continue;
                //    LoadShellApp(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, itemC);
                //}
            }
            string phyShellAppGlobal = PhyPathUtil.ConvertVirToPhyPath($"~/Config/AppGlobal/{ownerId}");
            if (FileUtil.ExistsDirByVirPath(phyShellAppGlobal))
            {
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "gateway.provider.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "snowflake.provider.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "debug.provider.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "ip.rate.limit.policy.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "proxy.reflection.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "quartz.provider.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "mapper.path.provider.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "resource.provider.json");
                LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, null, "business.json");
                //IFileProvider _glogalProviderT = new PhysicalFileProvider(phyShellAppGlobal);
                //Log.Warning($"=========加载配置【~/Config/AppGlobal】当前使用配置【{ownerId}】");
                //foreach (IFileInfo itemC in _glogalProviderT.GetDirectoryContents(""))
                //{
                //    if (!itemC.Name.EndsWith(".json")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.OsWindow}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.OsLinux}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.OsOsx}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.EnvDevelopment}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.EnvProduction}.")) continue;
                //    if (itemC.Name.Contains($".{EnvPFUtil.EnvStaging}.")) continue;
                //    if (itemC.Name.Contains($".{AppArgsUtil.GetDevelopmentConfigName()}.")) continue;
                //    if (itemC.Name.Contains($".rmt.")) continue;
                //    LoadAppGlobal(configSetup, env, os, debug, configBuilder, raloadOnChange, ownerId, itemC);
                //}
            }
文档更新时间: 2022-06-03 07:19   作者:admin