Table of Contents

Class ScanNetworkConsole

Namespace
Csra
Assembly
Csra.dll

Class to manage the collection of scan network pattern results and provide utility methods for result processing and display. This class serves as a central console for handling the outcomes of ScanNetwork pattern executions, allowing for easy aggregation, analysis, and debugging of test results across multiple ScanNetwork patterns.

[Serializable]
public sealed class ScanNetworkConsole
Inheritance
ScanNetworkConsole
Inherited Members

Constructors

ScanNetworkConsole()

public ScanNetworkConsole()

Properties

CoreList

public string[] CoreList { get; }

Property Value

string[]

MergedResults

public ScanNetworkPatternResults MergedResults { get; }

Property Value

ScanNetworkPatternResults

Methods

AddScanNetworkPatternResults(ScanNetworkPatternResults)

Adds the specified scan network pattern results to the collection and merges them into the aggregated results.

public void AddScanNetworkPatternResults(ScanNetworkPatternResults results)

Parameters

results ScanNetworkPatternResults

The ScanNetwork pattern results to add and merge. Cannot be null.

DebugDisplayResults(ScanNetworkPatternResults)

Displays the scan network pattern results in the Output window for debugging purposes. This format is subject to change after discussing with customers.

public void DebugDisplayResults(ScanNetworkPatternResults results)

Parameters

results ScanNetworkPatternResults

The results of the scan network pattern operation to be displayed. Cannot be null.

Remarks

This method outputs detailed information about each core and ICL instance contained in the results to the console. Use this method to inspect scan outcomes during development or troubleshooting. The output includes failure status, result validity, and error status for each instance.

DisableFailedCoresForPattern(ScanNetworkPatternInfo)

incrementally adding failed cores to the ignore list in pattern info for the next pattern execution, so that icl instances in those cores will be masked/contribution-disabled in the next run. This is useful when you want to focus on still-good cores by excluding known failed cores.

public void DisableFailedCoresForPattern(ScanNetworkPatternInfo patternInfo)

Parameters

patternInfo ScanNetworkPatternInfo

The ScanNetwork pattern object. Cannot be null.

Reset()

Resets the scan network pattern results to their initial state.

public void Reset()

Remarks

Call this method in OnProgramStarted() to clear all existing scan results and prepare for a new scan operation. After calling this method, previously merged results will be discarded and replaced with a new, empty result set.