Class TransientFaultExceptionConverter
- Assembly
- Codebelt.Extensions.Newtonsoft.Json.dll
Converts a TransientFaultException to or from JSON.
public class TransientFaultExceptionConverter : JsonConverter
- Inheritance
-
JsonConverterTransientFaultExceptionConverter
- Inherited Members
-
JsonConverter.CanReadJsonConverter.CanWrite
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
public override bool CanConvert(Type objectType)
Parameters
objectType
TypeType of the object.
Returns
- Boolean
true
if this instance can convert the specified object type; otherwise,false
.
ReadJson(JsonReader, Type, Object, JsonSerializer)
Reads the JSON representation of the object.
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
reader
JsonReaderThe Newtonsoft.Json.JsonReader to read from.
objectType
TypeType of the object to deserialize.
existingValue
ObjectThe existing value of object being read.
serializer
JsonSerializerThe calling serializer.
Returns
- Object
The deserialized object value.
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the JSON representation of the object.
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
writer
JsonWriterThe Newtonsoft.Json.JsonWriter to write to.
value
ObjectThe value to serialize.
serializer
JsonSerializerThe calling serializer.
See Also
JsonConverter