Skip to content
Tracon

TraconDiagnosticsCollector

Namespace Tracon · Assembly Tracon.Core.dll

Collects 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()

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>.

Collects the installation diagnostics report.

public ValueTask<TraconDiagnosticsReport> CollectAsync(CancellationToken cancellationToken = default)

cancellationToken CancellationToken

The cancellation token.

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.