Example #1
0
        /// <summary>Returns a setting. This is taken out of svn propertiesor config file </summary>
        private string GetSetting(string name, string commonRoot)
        {
            Log.Verbose("Getting Setting for name = {0} commonRoot = {1}", name, commonRoot);
            var result = string.Empty;

            if (!String.IsNullOrEmpty(commonRoot))
            { //Read from svn...
                SvnProperties props = new SvnProperties(commonRoot);
                result = props.Search(".", true, name);
            }
            result = !String.IsNullOrEmpty(result) ? result : GetAppSetting(name);
            Log.Verbose("Setting for name = {0} commonRoot = {1} is {2} ", name, commonRoot, result);
            return(result);
        }
Example #2
0
 /// <summary>Returns a setting. This is taken out of svn propertiesor config file </summary>
 private string GetSetting(string name, string commonRoot)
 {
     Log.Verbose("Getting Setting for name = {0} commonRoot = {1}", name, commonRoot);
     var result = string.Empty;
     if (!String.IsNullOrEmpty(commonRoot))
     {
         //Read from svn...
         var props = new SvnProperties(commonRoot);
         result = props.Search(".", true, name);
     }
     result = !String.IsNullOrEmpty(result) ? result : GetAppSetting(name);
     Log.Verbose("Setting for name = {0} commonRoot = {1} is {3} ", name, commonRoot, result);
     return result;
 }