public void SendMessageFromPlatform_Process(int seqid, TProtocol iprot, TProtocol oprot) { SendMessageFromPlatform_args args = new SendMessageFromPlatform_args(); args.Read(iprot); iprot.ReadMessageEnd(); SendMessageFromPlatform_result result = new SendMessageFromPlatform_result(); try { iface_.SendMessageFromPlatform(); oprot.WriteMessageBegin(new TMessage("SendMessageFromPlatform", 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("SendMessageFromPlatform", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_SendMessageFromPlatform() #endif { oprot_.WriteMessageBegin(new TMessage("SendMessageFromPlatform", TMessageType.Call, seqid_)); SendMessageFromPlatform_args args = new SendMessageFromPlatform_args(); args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }