Ejemplo n.º 1
0
        private static CheckConnectionExistenceWithAckMessage CreateCheckConnectionExistenceWithAckMessage(ref MessagePackReader reader, int arrayLength)
        {
            var connectionId = ReadString(ref reader, "connectionId");
            var ackId        = ReadInt32(ref reader, "ackId");

            var result = new CheckConnectionExistenceWithAckMessage(connectionId, ackId);

            result.ReadExtensionMembers(ref reader);
            return(result);
        }
Ejemplo n.º 2
0
 private static void WriteCheckConnectionExistenceWithAckMessage(ref MessagePackWriter writer, CheckConnectionExistenceWithAckMessage message)
 {
     writer.WriteArrayHeader(4);
     writer.Write(ServiceProtocolConstants.CheckConnectionExistenceWithAckMessageType);
     writer.Write(message.ConnectionId);
     writer.Write(message.AckId);
     message.WriteExtensionMembers(ref writer);
 }