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); }
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); }