예제 #1
0
        private string ResolveConfig(string fromConfig, string envKey, string defaultValue)
        {
            if (fromConfig != null)
            {
                if (SecretManager.HasVariable(fromConfig))
                {
                    return(SecretManager.ReplaceVariablesInContent(fromConfig));
                }

                return(fromConfig);
            }

            if (!string.IsNullOrEmpty(envKey))
            {
                return(SecretManager.GetEnvironmentVariable(envKey));
            }

            return(defaultValue);
        }