Validator
public abstract class ValidatorBase contract for inspecting catalog and filesystem consistency and optionally applying reported repairs.
Methods
Section titled “Methods”
IsVisible()
Section titled “IsVisible()”public virtual bool IsVisible()Reports whether this validator applies to the active database and project configuration.
Returns
System.Boolean
Validate()
Section titled “Validate()”public abstract Task Validate()Scans the active catalog or storage for this validator’s issue type and records findings without modifying customer data.
Returns
System.Threading.Tasks.Task
public abstract Task Fix()Repairs findings recorded by the most recent validation pass, then refreshes the validator state and results.
Returns
System.Threading.Tasks.Task
Constructors
Section titled “Constructors”
Validator()
Section titled “Validator()”protected Validator()Properties
Section titled “Properties”
public Validator.ValidatorType Type { get; protected set; }Returns
AssetInventory.Validator.ValidatorType
public Validator.ValidatorSpeed Speed { get; protected set; }Returns
AssetInventory.Validator.ValidatorSpeed
public string Name { get; protected set; }Returns
System.String
Description
Section titled “Description”public string Description { get; protected set; }Returns
System.String
Fixable
Section titled “Fixable”public bool Fixable { get; protected set; }Returns
System.Boolean
FixCaption
Section titled “FixCaption”public string FixCaption { get; protected set; }Returns
System.String
DBIssues
Section titled “DBIssues”public List<AssetInfo> DBIssues { get; set; }Returns
System.Collections.Generic.List{AssetInventory.AssetInfo}
FileIssues
Section titled “FileIssues”public List<string> FileIssues { get; set; }Returns
System.Collections.Generic.List{System.String}
CurrentState
Section titled “CurrentState”public Validator.State CurrentState { get; protected set; }Returns
AssetInventory.Validator.State
CancellationRequested
Section titled “CancellationRequested”public bool CancellationRequested { get; set; }Returns
System.Boolean
Progress
Section titled “Progress”public int Progress { get; set; }Returns
System.Int32
MaxProgress
Section titled “MaxProgress”public int MaxProgress { get; set; }Returns
System.Int32
ProgressId
Section titled “ProgressId”protected int ProgressId { get; set; }Returns
System.Int32
IsRunning
Section titled “IsRunning”public bool IsRunning { get; }Returns
System.Boolean
IssueCount
Section titled “IssueCount”public int IssueCount { get; }Returns
System.Int32
ResultText
Section titled “ResultText”public virtual string ResultText { get; }Returns
System.String