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); }