Пример #1
0
        public static ZFrame CreateMessageZFrame(ControlMessage message)
        {
            byte[] messageBytes = BinarySerializer <ControlMessage> .ToByteArray(message);

            return(new ZFrame(messageBytes));
        }
Пример #2
0
        public static ZFrame CreateMessageZFrame(ulong timer, int monitorId, int variableId, int signalDestId, MessageTypes type)
        {
            ControlMessage message = CreateMessage(timer, monitorId, variableId, signalDestId, type);

            return(CreateMessageZFrame(message));
        }