AuditPayload
Namespace AgentPrism · Assembly
AgentPrism.Core.dllBuilds a small JSON object for the audit trail.
public static class AuditPayloadInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Section titled “Methods”Write(Action<Utf8JsonWriter>)
Section titled “ Write(Action<Utf8JsonWriter>)”Writes a JSON object and returns it as text.
public static string Write(Action<Utf8JsonWriter> writeBody)Parameters
Section titled “Parameters”writeBody Action<Utf8JsonWriter>
Writes the object’s properties. The braces are supplied.
Returns
Section titled “Returns”The serialized object.
Exceptions
Section titled “Exceptions”writeBody is null.
WriteArray(string, IEnumerable<string>)
Section titled “ WriteArray(string, IEnumerable<string>)”Writes a JSON object holding one array of strings.
public static string WriteArray(string propertyName, IEnumerable<string> values)Parameters
Section titled “Parameters”propertyName string
The array property’s name.
values IEnumerable<string>
The values; each one is escaped.
Returns
Section titled “Returns”The serialized object.
Exceptions
Section titled “Exceptions”values is null.