public object Deserialize(Stream inStream)
        {
            TriggerObjectEventMessage msg = (TriggerObjectEventMessage)_serialize.Deserialize(inStream);
            var rc = TriggerObjectEventMessageConverter.FromProtoBuf(msg);

            msg.ReleaseReference();
            return(rc);
        }
Example #2
0
        public void Serialize(Stream outStream, object message)
        {
            var syncEvent = (TriggerObjectSyncEvent)message;
            var msg       = TriggerObjectEventMessage.Allocate();

            TriggerObjectEventMessageConverter.ToProtoBuf(msg, syncEvent);
            _serialize.Serialize(outStream, msg);
            msg.ReleaseReference();
        }