private static MultiConnectionDataMessage CreateMultiConnectionDataMessage(ref MessagePackReader reader, int arrayLength) { var connectionList = ReadStringArray(ref reader, "connectionList"); var payloads = ReadPayloads(ref reader); var result = new MultiConnectionDataMessage(connectionList, payloads); if (arrayLength >= 4) { result.ReadExtensionMembers(ref reader); } return(result); }
private static void WriteMultiConnectionDataMessage(ref MessagePackWriter writer, MultiConnectionDataMessage message) { writer.WriteArrayHeader(3); writer.Write(ServiceProtocolConstants.MultiConnectionDataMessageType); WriteStringArray(ref writer, message.ConnectionList); WritePayloads(ref writer, message.Payloads); }