Show / Hide Table of Contents

Class BaseCompare

The Generic Compare class.

Inheritance
System.Object
BaseCompare
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AttackSurfaceAnalyzer.Collectors
Assembly: AsaLib.dll
Syntax
public class BaseCompare

Constructors

| Improve this Doc View Source

BaseCompare()

Declaration
public BaseCompare()

Properties

| Improve this Doc View Source

Results

Declaration
public ConcurrentDictionary<(RESULT_TYPE, CHANGE_TYPE), List<CompareResult>> Results { get; }
Property Value
Type Description
System.Collections.Concurrent.ConcurrentDictionary<System.ValueTuple<RESULT_TYPE, CHANGE_TYPE>, System.Collections.Generic.List<CompareResult>>

Methods

| Improve this Doc View Source

Compare(IEnumerable<CollectObject>, IEnumerable<CollectObject>, String, String)

Declaration
public void Compare(IEnumerable<CollectObject> FirstRunObjects, IEnumerable<CollectObject> SecondRunObjects, string firstRunId, string secondRunId)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<CollectObject> FirstRunObjects
System.Collections.Generic.IEnumerable<CollectObject> SecondRunObjects
System.String firstRunId
System.String secondRunId
| Improve this Doc View Source

Compare(IEnumerable<(CollectObject, String)>, IEnumerable<(CollectObject, CollectObject)>, String, String)

Declaration
public void Compare(IEnumerable<(CollectObject, string)> differentObjects, IEnumerable<(CollectObject, CollectObject)> modifiedObjects, string firstRunId, string secondRunId)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.ValueTuple<CollectObject, System.String>> differentObjects
System.Collections.Generic.IEnumerable<System.ValueTuple<CollectObject, CollectObject>> modifiedObjects
System.String firstRunId
System.String secondRunId
| Improve this Doc View Source

Compare(String, String)

Compares all the common collectors between two runs.

Declaration
public void Compare(string firstRunId, string secondRunId)
Parameters
Type Name Description
System.String firstRunId

The Base run id.

System.String secondRunId

The Compare run id.

| Improve this Doc View Source

GetDiffs(PropertyInfo, Object, Object)

Creates a list of Diff objects based on an object property and findings.

Declaration
public static List<Diff> GetDiffs(PropertyInfo prop, object added, object removed)
Parameters
Type Name Description
System.Reflection.PropertyInfo prop

The property of the referenced object.

System.Object added

The added findings.

System.Object removed

The removed findings.

Returns
Type Description
System.Collections.Generic.List<Diff>
| Improve this Doc View Source

IsRunning()

Returns if the comparators are still running.

Declaration
public RUN_STATUS IsRunning()
Returns
Type Description
RUN_STATUS

RUN_STATUS indicating run status.

| Improve this Doc View Source

Start()

Set status to running.

Declaration
public void Start()
| Improve this Doc View Source

Stop()

Sets status to completed.

Declaration
public void Stop()
| Improve this Doc View Source

TryCompare(String, String)

Compare but with Start/Stop automatic

Declaration
public bool TryCompare(string firstRunId, string secondRunId)
Parameters
Type Name Description
System.String firstRunId

The Base run id.

System.String secondRunId

The Compare run id.

Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX