public void Speakwords_Process(int seqid, TProtocol iprot, TProtocol oprot) { Speakwords_args args = new Speakwords_args(); args.Read(iprot); iprot.ReadMessageEnd(); Speakwords_result result = new Speakwords_result(); try { iface_.Speakwords(args.Msg); oprot.WriteMessageBegin(new TMessage("Speakwords", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("Speakwords", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_Speakwords(string msg) #endif { oprot_.WriteMessageBegin(new TMessage("Speakwords", TMessageType.Call, seqid_)); Speakwords_args args = new Speakwords_args(); args.Msg = msg; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }