public void send_lookupByPhoneNumber(string countryAreaCode, string phoneNumber) { oprot_.WriteMessageBegin(new TMessage("lookupByPhoneNumber", TMessageType.Call, seqid_)); lookupByPhoneNumber_args args = new lookupByPhoneNumber_args(); args.CountryAreaCode = countryAreaCode; args.PhoneNumber = phoneNumber; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public IAsyncResult send_lookupByPhoneNumber(AsyncCallback callback, object state, string countryAreaCode, string phoneNumber) { oprot_.WriteMessageBegin(new TMessage("lookupByPhoneNumber", TMessageType.Call, seqid_)); lookupByPhoneNumber_args args = new lookupByPhoneNumber_args(); args.CountryAreaCode = countryAreaCode; args.PhoneNumber = phoneNumber; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }
public void send_lookupByPhoneNumber(string countryAreaCode, string phoneNumber) #endif { oprot_.WriteMessageBegin(new TMessage("lookupByPhoneNumber", TMessageType.Call, seqid_)); lookupByPhoneNumber_args args = new lookupByPhoneNumber_args(); args.CountryAreaCode = countryAreaCode; args.PhoneNumber = phoneNumber; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }
public void lookupByPhoneNumber_Process(int seqid, TProtocol iprot, TProtocol oprot) { lookupByPhoneNumber_args args = new lookupByPhoneNumber_args(); args.Read(iprot); iprot.ReadMessageEnd(); lookupByPhoneNumber_result result = new lookupByPhoneNumber_result(); try { try { result.Success = iface_.lookupByPhoneNumber(args.CountryAreaCode, args.PhoneNumber); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("lookupByPhoneNumber", 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("lookupByPhoneNumber", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }