public void Call(params object[] args) { if (sent[0]) { return; } sent[0] = true; var log = LogManager.GetLogger(GlobalHelper.CallerName()); var jsonArgs = Packet.Args2JArray(args); log.Info(string.Format("sending ack {0}", args.Length != 0 ? jsonArgs.ToString() : "null")); var parserType = HasBinaryData.HasBinary(args) ? Parser.BINARY_ACK : Parser.ACK; var packet = new Packet(parserType, jsonArgs); packet.Id = Id; socket.PacketProcess(packet); }