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