Пример #1
0
        public string[] GetConductors(string prefixText, int count)
        {
            ICacheManager CacheManager = CacheFactory.GetCacheManager();
            String        key          = Constants.Conductor.EntityName;
            var           conductors   = CacheManager.GetData(key) as List <ArchiveAutocomplete.AutoCompleteKeyValue>;

            if (conductors == null)
            {
                conductors = ArchiveAutocomplete.GetDistinctConductors();

                CacheManager.Add(key, conductors);
            }

            var items = BuildAutoCompleteItemList(conductors, prefixText);

            return(items.ToArray());
        }