Пример #1
0
        internal async Task <KeyValuePair <string, string>[]> RefreshAvailableScopes()
        {
            var modules = await _process.GetModuleNamesAndPaths();

            var moduleToFile = new Dictionary <string, string>();

            foreach (var item in modules)
            {
                if (!string.IsNullOrEmpty(item.Value))
                {
                    moduleToFile[item.Key] = item.Value;
                }
            }
            _moduleToFileName = moduleToFile;

            SetAvailableScopes(modules.Select(m => m.Key).ToArray());
            EnableMultipleScopes = true;

            return(modules);
        }