Class TransientFaultExceptionConverter
- 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
reader
Utf8JsonReaderThe Utf8JsonReader to read from.
typeToConvert
TypeThe Type being converted.
options
JsonSerializerOptionsThe 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
writer
Utf8JsonWriterThe Utf8JsonWriter to write to.
value
TransientFaultExceptionThe value to convert.
options
JsonSerializerOptionsThe JsonSerializerOptions being used.