public void EstimateWalkPoints_Process(int seqid, TProtocol iprot, TProtocol oprot) { EstimateWalkPoints_args args = new EstimateWalkPoints_args(); args.Read(iprot); iprot.ReadMessageEnd(); EstimateWalkPoints_result result = new EstimateWalkPoints_result(); try { result.Success = iface_.EstimateWalkPoints(args.SceneObjects, args.Target, args.Amount, args.Properties); oprot.WriteMessageBegin(new TMessage("EstimateWalkPoints", 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("EstimateWalkPoints", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_EstimateWalkPoints(List <MMIStandard.MSceneObject> sceneObjects, MMIStandard.MSceneObject target, int amount, Dictionary <string, string> properties) { oprot_.WriteMessageBegin(new TMessage("EstimateWalkPoints", TMessageType.Call, seqid_)); EstimateWalkPoints_args args = new EstimateWalkPoints_args(); args.SceneObjects = sceneObjects; args.Target = target; args.Amount = amount; args.Properties = properties; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public IAsyncResult send_EstimateWalkPoints(AsyncCallback callback, object state, List <MMIStandard.MSceneObject> sceneObjects, MMIStandard.MSceneObject target, int amount, Dictionary <string, string> properties) { oprot_.WriteMessageBegin(new TMessage("EstimateWalkPoints", TMessageType.Call, seqid_)); EstimateWalkPoints_args args = new EstimateWalkPoints_args(); args.SceneObjects = sceneObjects; args.Target = target; args.Amount = amount; args.Properties = properties; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }