.NET API
TraconDiagnosticsCollector
Tracon.Core.dllCollects the installation’s self-diagnostic summary report.
public sealed class TraconDiagnosticsCollector- Inheritance
- object ← TraconDiagnosticsCollector
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Has no side effects. It makes no model calls: model provider status is read from the cached health-check results without triggering a new health check. When SQL persistence is registered, it performs a light connectivity probe through ISqlPersistenceDiagnostics.GetSnapshotAsync; it does not apply migrations.
The generated TraconDiagnosticsReport contains no secret.
AddTracon registers the collector as a singleton; resolve it with
GetRequiredService<TraconDiagnosticsCollector>.
Methods
Section titled “Methods”CollectAsync(CancellationToken)
Section titled “ CollectAsync(CancellationToken)”Collects the installation diagnostics report.
public ValueTask<TraconDiagnosticsReport> CollectAsync(CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<TraconDiagnosticsReport>
The report. TraconDiagnosticsReport.UiEmbedded always
returns false because the field belongs to the
Tracon.AspNetCore layer, which Tracon.Core does not
know. The caller must set it with a with expression.