Table of Contents

Class StackFrameParser

Namespace
Quilt4Net.Toolkit.Features.ApplicationInsights
Assembly
Quilt4Net.Toolkit.dll

Parses the AI exception Details payload (a JSON array of detail objects, each carrying its own parsedStack) into a flat sequence of StackFrames suitable for tabular rendering. Robust to either a pre-deserialized JsonElement value or a raw JSON string in the row dictionary.

public static class StackFrameParser
Inheritance
StackFrameParser
Inherited Members

Methods

Parse(IReadOnlyDictionary<string, object>)

Parse stack frames from an AI exception row's Raw dictionary. Returns empty when Details is missing, empty, or unparseable.

public static IReadOnlyList<StackFrame> Parse(IReadOnlyDictionary<string, object> raw)

Parameters

raw IReadOnlyDictionary<string, object>

Returns

IReadOnlyList<StackFrame>

ToResharperPath(StackFrame, IReadOnlyList<string>)

Convert a stack frame into a Resharper-friendly FileName:line N reference. When any of sourcePathRoots appears in the path, everything up to (and including) that segment is stripped — leaving a leading slash + the path inside the project (e.g. \Features\Team\UserService.cs:line 24) which Resharper / Rider can resolve from any open solution containing that file.

public static string ToResharperPath(StackFrame frame, IReadOnlyList<string> sourcePathRoots = null)

Parameters

frame StackFrame
sourcePathRoots IReadOnlyList<string>

Returns

string