Exemplo n.º 1
0
 public void send_createSession()
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("createSession", TMessageType.Call, seqid_));
   createSession_args args = new createSession_args();
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Exemplo n.º 2
0
 public void createSession_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   createSession_args args = new createSession_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   createSession_result result = new createSession_result();
   try {
     result.Success = iface_.createSession();
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("createSession", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }