Class TransientFaultExceptionConverter
- Namespace
- Cuemon.Extensions.Text.Json.Converters
- Assembly
- Cuemon.Extensions.Text.Json.dll
Converts a TransientFaultException to or from JSON.
public class TransientFaultExceptionConverter : JsonConverter<TransientFaultException>
- Inheritance
-
TransientFaultExceptionConverter
- Inherited Members
- Extension Methods
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type TransientFaultException.
public override TransientFaultException Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderThe Utf8JsonReader to read from.
typeToConvertTypeThe Type being converted.
optionsJsonSerializerOptionsThe JsonSerializerOptions being used.
Returns
- TransientFaultException
The value that was converted.
Write(Utf8JsonWriter, TransientFaultException, JsonSerializerOptions)
Writes the value as JSON.
public override void Write(Utf8JsonWriter writer, TransientFaultException value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriterThe Utf8JsonWriter to write to.
valueTransientFaultExceptionThe value to convert.
optionsJsonSerializerOptionsThe JsonSerializerOptions being used.