예제 #1
0
        public byte[] Encode(KSObject payloadObj)
        {
            var msg = new Message();

            msg.Type    = payloadObj.Name();
            msg.Payload = GetString(payloadObj.Serialize());
            return(msg.Serialize());
        }
예제 #2
0
 private void RegisterMessage(KSObject obj)
 {
     installedMessages.Add(obj.Name(), obj);
 }