Exemplo n.º 1
0
        private static void OverrideConfigIfConfigFileFound(ConfigManagerSettings configManagerSettings)
        {
            var configJson = EmbeddedResourceHelper.Load(configManagerSettings.MasterFile, configManagerSettings.Assembly);

            if (!string.IsNullOrWhiteSpace(configJson))
            {
                SetConfig(configJson);
            }
        }
Exemplo n.º 2
0
        private static void SetBuildInConfig(ConfigManagerSettings configManagerSettings)
        {
            var configFile = configManagerSettings.DebugFile;

#if !DEBUG
            configFile = configManagerSettings.ReleaseFile;
#endif
            var configJson = EmbeddedResourceHelper.Load(configFile, configManagerSettings.Assembly);
            if (!string.IsNullOrWhiteSpace(configJson))
            {
                SetConfig(configJson);
            }
        }