DevUISerializer class
Namespace: Vitreous.DevUI.Tracing
Assembly: Vitreous.DevUI.dll
Serializes captured messages and results for display, masking sensitive values, and serializes traces for the UI. One instance (and one set of JsonSerializerOptions, with its metadata cache) is shared by every tracing behavior instead of one per closed generic type.
public sealed class DevUISerializerInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”DevUISerializer(VitreousDevUIOptions)
Section titled “ DevUISerializer(VitreousDevUIOptions)”public DevUISerializer(VitreousDevUIOptions options)Parameters
Section titled “Parameters”options VitreousDevUIOptions
Methods
Section titled “Methods”SerializePayload<T>(T?)
Section titled “ SerializePayload<T>(T?)”Serializes a captured message, result or stream item with sensitive values masked. Returns null for null or values that cannot be serialized.
public string? SerializePayload<T>(T? value)Parameters
Section titled “Parameters”value T?
Returns
Section titled “Returns”Type Parameters
Section titled “Type Parameters”T
SerializeTrace<T>(T)
Section titled “ SerializeTrace<T>(T)”Serializes a trace (or a list of traces) for the UI.
public string SerializeTrace<T>(T trace)Parameters
Section titled “Parameters”trace T
Returns
Section titled “Returns”Type Parameters
Section titled “Type Parameters”T