コード例 #1
0
 protected override JObject?Serialize <T>(T instance)
 => JsonSerialization.Serialize(instance);
コード例 #2
0
 protected override object Deserialize(Type paramType, JObject message)
 => JsonSerialization.ToObject(paramType, message);
コード例 #3
0
 protected override JObject Decode(byte[] message)
 => JsonSerialization.Deserialize(Encoding.UTF8.GetString(message));
コード例 #4
0
 protected override TParam Deserialize <TParam>(JObject message)
 => JsonSerialization.Deserialize <TParam>(message);
コード例 #5
0
 protected override byte[] EncodeBody <T>(T message)
 => Encoding.UTF8.GetBytes(JsonSerialization.Serialize(message).ToString( ));