Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 382 Bytes

File metadata and controls

17 lines (14 loc) · 382 Bytes

Meziantou.Framework.Diagnostics.ContextSnapshot

Get the current execution context for diagnostic purposes.

var context = new ContextSnapshotBuilder().AddDefault().Build();

// You can serialize the context
JsonSerializer.Serialize(snapshot, new JsonSerializerOptions
{
    WriteIndented = true,
    Converters =
    {
        new JsonStringEnumConverter(),
    },
});