Esempio n. 1
0
        private static string GetValueFromTermGroup(TermStore store, TraceWriter log, ClientContext context)
        {
            string value = string.Empty;

            string[] termNames     = EnvironmentConfigurationManager.GetSetting(AppSettings.TermGroupName).Split(';');
            string   termGroupName = termNames[0];

            foreach (TermGroup group in store.Groups)
            {
                if (group.Name == termGroupName)
                {
                    log.Info($"Found {termGroupName} term group");
                    value = GetValueFromTermSet(group, termNames, log, context);
                }
            }

            return(value);
        }