public void kick_Process(int seqid, TProtocol iprot, TProtocol oprot) { kick_args args = new kick_args(); args.Read(iprot); iprot.ReadMessageEnd(); kick_result result = new kick_result(); try { result.Success = iface_.kick(args.AuthString, args.Name, args.Message); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } catch (org.phybros.thrift.EDataException dex) { result.Dex = dex; } oprot.WriteMessageBegin(new TMessage("kick", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_kick(string authString, string name, string message) #endif { oprot_.WriteMessageBegin(new TMessage("kick", TMessageType.Call, seqid_)); kick_args args = new kick_args(); args.AuthString = authString; args.Name = name; args.Message = message; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }