public void GetLocalPath_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetLocalPath_args args = new GetLocalPath_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetLocalPath_result result = new GetLocalPath_result(); try { result.Success = iface_.GetLocalPath(args.Message); oprot.WriteMessageBegin(new TMessage("GetLocalPath", 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("GetLocalPath", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public IAsyncResult send_GetLocalPath(AsyncCallback callback, object state, string message) { oprot_.WriteMessageBegin(new TMessage("GetLocalPath", TMessageType.Call, seqid_)); GetLocalPath_args args = new GetLocalPath_args(); args.Message = message; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }
public void send_GetLocalPath(string message) { oprot_.WriteMessageBegin(new TMessage("GetLocalPath", TMessageType.Call, seqid_)); GetLocalPath_args args = new GetLocalPath_args(); args.Message = message; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void send_GetLocalPath(string message) #endif { oprot_.WriteMessageBegin(new TMessage("GetLocalPath", TMessageType.Call, seqid_)); GetLocalPath_args args = new GetLocalPath_args(); args.Message = message; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }