public byte[] Encode(KSObject payloadObj) { var msg = new Message(); msg.Type = payloadObj.Name(); msg.Payload = GetString(payloadObj.Serialize()); return(msg.Serialize()); }
private void RegisterMessage(KSObject obj) { installedMessages.Add(obj.Name(), obj); }