private async Task ExecuteProjectsAnalysisAsync(IList <ProjectData> projects, ProjectsAnalysisStat statistics)
        {
            IConfigDataProvider configDataProvider = new AppDataConfigDataProvider(ConfigDefs.ConfigDirectory, ConfigDefs.ConfigFilename);
            String appPath = await SourceCodeAnalysisAppHelper.PrepareAnalysisAppAsync(_package, configDataProvider.GetAppPath());

            if (!String.IsNullOrEmpty(appPath))
            {
                await ExecuteProjectsAnalysisImplAsync(projects, statistics, appPath, configDataProvider);
            }
            await _commandExecutionLimiter.StopCommandExecAsync();
        }
Esempio n. 2
0
        private async Task ExecuteSolutionAnalysisAsync(String target)
        {
            IConfigDataProvider configDataProvider = new AppDataConfigDataProvider(ConfigDefs.ConfigDirectory, ConfigDefs.ConfigFilename);
            String appPath = await SourceCodeAnalysisAppHelper.PrepareAnalysisAppAsync(_package, configDataProvider.GetAppPath());

            if (!String.IsNullOrEmpty(appPath))
            {
                await ExecuteSolutionAnalysisImplAsync(target, appPath, configDataProvider);
            }
            await _commandExecutionLimiter.StopCommandExecAsync();
        }