private void GenerateMetrics() { // Gather solution-level metrics BuildErrorMetrics = MetricsTransformer.TransformBuildErrors(Context, PortSolutionResult.BuildErrors); ReferencesMetrics = MetricsTransformer.TransformReferences(Context, PortSolutionResult.References); DownloadedFilesMetrics = MetricsTransformer.TransformDownloadedFiles(Context, PortSolutionResult.DownloadedFiles); // Gather project-level metrics var targetVersionMetrics = new List <TargetVersionMetric>(); var upgradePackageMetrics = new List <UpgradePackageMetric>(); var actionPackageMetrics = new List <ActionPackageMetric>(); var actionMetrics = new List <GenericActionMetric>(); var actionExecutionMetrics = new List <GenericActionExecutionMetric>(); foreach (var projectResult in PortSolutionResult.ProjectResults) { targetVersionMetrics.AddRange(MetricsTransformer.TransformTargetVersions(Context, projectResult)); upgradePackageMetrics.AddRange(MetricsTransformer.TransformUpgradePackages(Context, projectResult)); actionPackageMetrics.AddRange(MetricsTransformer.TransformActionPackages(Context, projectResult)); actionMetrics.AddRange(MetricsTransformer.TransformProjectActions(Context, projectResult)); actionExecutionMetrics.AddRange(MetricsTransformer.TransformGenericActionExecutions(Context, projectResult)); } TargetVersionMetrics = targetVersionMetrics; UpgradePackageMetrics = upgradePackageMetrics; ActionPackageMetrics = actionPackageMetrics; GenericActionMetrics = actionMetrics; GenericActionExecutionMetrics = actionExecutionMetrics; }
private void GenerateAnalysisMetrics() { var upgradePackageMetrics = new List <UpgradePackageMetric>(); var actionPackageMetrics = new List <ActionPackageMetric>(); var actionMetrics = new List <GenericActionMetric>(); var featureDetectionMetrics = new List <FeatureDetectionMetric>(); var missingMetaReferenceMetrics = new List <MissingMetaReferenceMetric>(); foreach (var projectResult in PortSolutionResult.ProjectResults) { upgradePackageMetrics.AddRange(MetricsTransformer.TransformUpgradePackages(Context, projectResult)); actionPackageMetrics.AddRange(MetricsTransformer.TransformActionPackages(Context, projectResult)); actionMetrics.AddRange(MetricsTransformer.TransformProjectActions(Context, projectResult)); missingMetaReferenceMetrics.AddRange(MetricsTransformer.TransformMissingMetaReferences(Context, projectResult)); } featureDetectionMetrics.AddRange(MetricsTransformer.TransformFeatureDetectionResults(Context, FeatureDetectionResults)); UpgradePackageMetrics = upgradePackageMetrics; ActionPackageMetrics = actionPackageMetrics; GenericActionMetrics = actionMetrics; FeatureDetectionMetrics = featureDetectionMetrics; MissingMetaReferenceMetrics = missingMetaReferenceMetrics; }