Esempio n. 1
0
        public async Task <List <SymbolSearchResultEntry> > SearchAsync(string searchTerm)
        {
            List <SymbolSearchResultEntry> results = new List <SymbolSearchResultEntry>();

            if (!string.IsNullOrEmpty(searchTerm))
            {
                using (await m_lock.AcquireAsync())
                {
                    var range = RangeHelper.GetRange(m_symbolsByShortName,
                                                     searchTerm,
                                                     CompareTermLower,
                                                     CompareTermUpper);
                    results.AddRange(range);
                }
            }

            return(results);
        }