Exemplo n.º 1
0
 public GetAssociationsReturnStruct recv_GetAssociations()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetAssociations_result result = new GetAssociations_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetAssociations failed: unknown result");
 }
Exemplo n.º 2
0
 public void GetAssociations_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetAssociations_args args = new GetAssociations_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetAssociations_result result = new GetAssociations_result();
   result.Success = iface_.GetAssociations(args._homeId, args._nodeId, args._groupIdx);
   oprot.WriteMessageBegin(new TMessage("GetAssociations", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }