public tReponseMsg GetReponseAsync(tRequestMsg Msg) { #if SILVERLIGHT var asyncResult = Begin_GetReponse(null, null, Msg); return(End_GetReponse(asyncResult)); #else send_GetReponse(Msg); return(recv_GetReponse()); #endif }
public void send_GetReponse(tRequestMsg Msg) { oprot_.WriteMessageBegin(new TMessage("GetReponse", TMessageType.Call, seqid_)); GetReponse_args args = new GetReponse_args(); args.Msg = Msg; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public IAsyncResult send_GetReponse(AsyncCallback callback, object state, tRequestMsg Msg) { oprot_.WriteMessageBegin(new TMessage("GetReponse", TMessageType.Call, seqid_)); GetReponse_args args = new GetReponse_args(); args.Msg = Msg; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }
public tReponseMsg GetReponseAsync(tRequestMsg Msg) { var req = new DevelopBase.Protocol.BaseRequest { ActionKey = Msg.ActionKey, RequestObject = Msg.RequestObject }; dynamic result = DependencyContainer.GetService <DevelopBase.Protocol.IBaseExtend>().Handler(req); return(new tReponseMsg() { ErrorCode = result.ErrorCode, ErrorInfo = result.ErrorInfo, Result = Newtonsoft.Json.JsonConvert.SerializeObject($"{result.Result}") }); }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Msg = new tRequestMsg(); Msg.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }
public IAsyncResult Begin_GetReponse(AsyncCallback callback, object state, tRequestMsg Msg) { return(send_GetReponse(callback, state, Msg)); }