@page "/diagnostics" @inject DiagnosticPageViewModel Diagnostics Synthetic diagnostics - AutoForge

Synthetic module diagnostics

This workflow sends synthetic protocol v1 requests through the selected in-process virtual transport. It is not a real vehicle connection, vehicle compatibility determination, live capture or physical operation.

@if (Diagnostics.Providers.Count == 0) {

No diagnostic provider is available. Replay and physical providers are not substituted.

}

Explicit profile and provider selection

The example import does not select the profile or open a session.

@if (Diagnostics.ActiveSession is null) { } else {

@Diagnostics.ActiveSession.Identity.Target.Kind target @Diagnostics.ActiveSession.Identity.Target.ProviderIdentifier; session @Diagnostics.ActiveSession.Identity.SessionIdentifier; profile @Diagnostics.ActiveSession.Identity.ProfileIdentifier revision @Diagnostics.ActiveSession.Identity.ProfileRevision; configuration @Diagnostics.ActiveSession.Identity.ConfigurationIdentifier.

@if (Diagnostics.IsBusy) { } }
@if (Diagnostics.OperationMessages.Count > 0) {

Operation outcomes

} @if (Diagnostics.ActiveSession is { } session) {

Expected endpoints, validated probes and identified modules

@if (Diagnostics.DiscoverySummary is { } discoverySummary) {

@discoverySummary

} @if (Diagnostics.DiscoveredModules.Count == 0) {

Module discovery has not been run for this session.

} else { }

Bounded session communication trace

Retained @session.Trace.Entries.Count records; dropped @session.Trace.DroppedRecordCount.

    @foreach (var entry in session.Trace.Entries) {
  1. @entry.Outcome — @entry.Service; @entry.ModuleIdentifier at 0x@(entry.Address); correlation @entry.CorrelationIdentifier; logical ticks @entry.StartLogicalTicks–@entry.EndLogicalTicks. @if (entry.DecodedSummary is not null) { Decoded: @entry.DecodedSummary. } @if (entry.Error is not null) { Error: @entry.Error }
    Raw synthetic protocol v1 payloads

    These exact source payloads are not changed by the display preference.

    Request: @System.Text.Encoding.UTF8.GetString(entry.RequestPayload.Span)
    @if (entry.ResponsePayload is { } response) {
    Response: @System.Text.Encoding.UTF8.GetString(response.Span)
    } else {

    No response payload was received.

    }
  2. }
} @code { [CascadingParameter] public DisplayUnitSelection DisplaySelection { get; set; } = DisplayUnitSelection.Default; }