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