public Dictionary<string, Contact> recv_findAndAddContactsByEmail() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } findAndAddContactsByEmail_result result = new findAndAddContactsByEmail_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.e) { throw result.E; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "findAndAddContactsByEmail failed: unknown result"); }
public void findAndAddContactsByEmail_Process(int seqid, TProtocol iprot, TProtocol oprot) { findAndAddContactsByEmail_args args = new findAndAddContactsByEmail_args(); args.Read(iprot); iprot.ReadMessageEnd(); findAndAddContactsByEmail_result result = new findAndAddContactsByEmail_result(); try { result.Success = iface_.findAndAddContactsByEmail(args.ReqSeq, args.Emails); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("findAndAddContactsByEmail", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }