Class MailAuthenticationMechanismJsonConverter
- Namespace
- MailFathom.Domain.Transport
- Assembly
- MailFathom.Domain.dll
Serializes MailAuthenticationMechanism as its registered SASL name.
public sealed class MailAuthenticationMechanismJsonConverter : JsonConverter<MailAuthenticationMechanism>
- Inheritance
-
MailAuthenticationMechanismJsonConverter
- 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 SASL name for the same reason the value object exists: an ordinal position would silently change meaning if the supported set were ever reordered, while the name is the identity the SASL registry, operator configuration, and the server's advertised set already agree on.
Methods
- Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type MailAuthenticationMechanism.
- ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads a dictionary key from a JSON property name.
- Write(Utf8JsonWriter, MailAuthenticationMechanism, JsonSerializerOptions)
Writes a specified value as JSON.
- WriteAsPropertyName(Utf8JsonWriter, MailAuthenticationMechanism, JsonSerializerOptions)
Writes a dictionary key as a JSON property name.