Exemple #1
0
        public async Task <string> GetSubFolder(string file, string[] labels, SubFolders subFolder, IFormatter formatter)
        {
            _subFolders = subFolder;
            foreach (string label in labels)
            {
                KeysAlternatives keyAlternative = GetKeysFromLabel(label);
                _subFolders = _parser.InvokeWithAlternative(keyAlternative, _subFolders, file);
            }

            return(await _subFolders.GetSubFolder(formatter));
        }
Exemple #2
0
 public static async Task <string> ExecuteWithAlternative(SubFolders alternative, string defaultString)
 {
     return(alternative == null
         ? defaultString
         : await alternative.GetSubFolder(Config.Get <JustValueFormatters>()));
 }