public RSAKey recv_getRSAKeyInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getRSAKeyInfo_result result = new getRSAKeyInfo_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, "getRSAKeyInfo failed: unknown result"); }
public void getRSAKeyInfo_Process(int seqid, TProtocol iprot, TProtocol oprot) { getRSAKeyInfo_args args = new getRSAKeyInfo_args(); args.Read(iprot); iprot.ReadMessageEnd(); getRSAKeyInfo_result result = new getRSAKeyInfo_result(); try { result.Success = iface_.getRSAKeyInfo(args.Provider); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("getRSAKeyInfo", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }