Class ObjectStorageFailureJsonConverter
- Namespace
- MailFathom.Infrastructure.ObjectStorage
- Assembly
- MailFathom.Infrastructure.dll
Serializes ObjectStorageFailure as its published name.
public sealed class ObjectStorageFailureJsonConverter : JsonConverter<ObjectStorageFailure>
- Inheritance
-
ObjectStorageFailureJsonConverter
- Inherited Members
Remarks
The type carries this converter through JsonConverterAttribute, so every serializer that meets the value uses it without per-call registration. The JSON form is the published name rather than an ordinal for the reason the value object exists at all: the name is what a dashboard and an alert already match on, while a position would change meaning the moment the declared set were reordered.
Methods
- Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type ObjectStorageFailure.
- ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
- Write(Utf8JsonWriter, ObjectStorageFailure, JsonSerializerOptions)
Writes a specified value as JSON.
- WriteAsPropertyName(Utf8JsonWriter, ObjectStorageFailure, JsonSerializerOptions)
Writes a dictionary key as a JSON property name.