コード例 #1
0
ファイル: HotUpdateManager.cs プロジェクト: w1r2p1/OsEngine-1
        private List <string> SeekForSourceFiles(BotPanel bot)
        {
            string botUniqName = GetBotUniqName(bot);

            if (_classPathCache.ContainsKey(botUniqName))
            {
                return(new List <string> {
                    _classPathCache[botUniqName]
                });
            }

            string className   = bot.GetType().Name;
            string fileName    = className + ".cs";
            string projectPath = Directory.GetParent(Environment.CurrentDirectory).Parent.FullName;

            return(IndicatorsFactory.GetFullNamesFromFolder(projectPath)
                   .Where(f => fileName.Equals(Path.GetFileName(f)))
                   .ToList());
        }