public void banIp_Process(int seqid, TProtocol iprot, TProtocol oprot) { banIp_args args = new banIp_args(); args.Read(iprot); iprot.ReadMessageEnd(); banIp_result result = new banIp_result(); try { result.Success = iface_.banIp(args.AuthString, args.Ip); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } oprot.WriteMessageBegin(new TMessage("banIp", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_banIp(string authString, string ip) #endif { oprot_.WriteMessageBegin(new TMessage("banIp", TMessageType.Call, seqid_)); banIp_args args = new banIp_args(); args.AuthString = authString; args.Ip = ip; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }