Class NcDiagnosticProgress
Helper that emits NcDiagnostic records via an IProgress<T> sink. Provides one method per (NcDiagnosticCategory, NcDiagnosticSeverity) pair, each with an optional Sentence overload locating the issue in the NC source.
public class NcDiagnosticProgress : IProgress<NcDiagnostic>
- Inheritance
-
NcDiagnosticProgress
- Implements
- Inherited Members
- Extension Methods
Constructors
NcDiagnosticProgress(IProgress<object>)
Creates a NcDiagnosticProgress that forwards every
reported NcDiagnostic to progress.
public NcDiagnosticProgress(IProgress<object> progress)
Parameters
Methods
ConfigurationError(Sentence, string, string, object)
Emits Configuration + Error located at sentence.
public void ConfigurationError(Sentence sentence, string id, string text, object detail = null)
Parameters
ConfigurationError(string, string, object)
Emits Configuration + Error (dependency/config missing, cannot proceed).
public void ConfigurationError(string id, string text, object detail = null)
Parameters
ConfigurationMessage(Sentence, string, string)
Emits Configuration + Message located at sentence.
public void ConfigurationMessage(Sentence sentence, string id, string text)
Parameters
ConfigurationMessage(string, string)
Emits Configuration + Message (dependency/config applied, informational event).
public void ConfigurationMessage(string id, string text)
Parameters
ConfigurationWarning(Sentence, string, string, object)
Emits Configuration + Warning located at sentence.
public void ConfigurationWarning(Sentence sentence, string id, string text, object detail = null)
Parameters
ConfigurationWarning(string, string, object)
Emits Configuration + Warning (dependency/config missing, using fallback).
public void ConfigurationWarning(string id, string text, object detail = null)
Parameters
Report(NcDiagnostic)
Reports a progress update.
public void Report(NcDiagnostic value)
Parameters
valueNcDiagnosticThe value of the updated progress.
SystemError(Sentence, string, string, object)
public void SystemError(Sentence sentence, string id, string text, object detail = null)
Parameters
SystemError(string, string, object)
public void SystemError(string id, string text, object detail = null)
Parameters
SystemMessage(Sentence, string, string)
public void SystemMessage(Sentence sentence, string id, string text)
Parameters
SystemMessage(string, string)
public void SystemMessage(string id, string text)
Parameters
UnsupportedError(Sentence, string, string, object)
Emits Unsupported + Error located at sentence.
public void UnsupportedError(Sentence sentence, string id, string text, object detail = null)
Parameters
UnsupportedError(string, string, object)
Emits Unsupported + Error (recognized but unimplemented, likely matters).
public void UnsupportedError(string id, string text, object detail = null)
Parameters
UnsupportedWarning(Sentence, string, string, object)
Emits Unsupported + Warning located at sentence.
public void UnsupportedWarning(Sentence sentence, string id, string text, object detail = null)
Parameters
UnsupportedWarning(string, string, object)
Emits Unsupported + Warning (recognized but unimplemented, likely harmless).
public void UnsupportedWarning(string id, string text, object detail = null)
Parameters
ValidationError(Sentence, string, string, object)
Emits Validation + Error located at sentence.
public void ValidationError(Sentence sentence, string id, string text, object detail = null)
Parameters
ValidationError(string, string, object)
Emits Validation + Error (manufacturing/physics is unfeasible).
public void ValidationError(string id, string text, object detail = null)
Parameters
ValidationWarning(Sentence, string, string, object)
Emits Validation + Warning located at sentence.
public void ValidationWarning(Sentence sentence, string id, string text, object detail = null)
Parameters
ValidationWarning(string, string, object)
Emits Validation + Warning (manufacturing/physics may be unfeasible).
public void ValidationWarning(string id, string text, object detail = null)