public void updateDisposableInstance_Process(int seqid, TProtocol iprot, TProtocol oprot) { updateDisposableInstance_args args = new updateDisposableInstance_args(); args.Read(iprot); iprot.ReadMessageEnd(); updateDisposableInstance_result result = new updateDisposableInstance_result(); try { iface_.updateDisposableInstance(args.InstanceId, args.ViewCount, args.ViewTimeLimit, args.Session); } catch (ChatUserInfoException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("updateDisposableInstance", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_updateDisposableInstance(string instanceId, int viewCount, int viewTimeLimit, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("updateDisposableInstance", TMessageType.Call, seqid_)); updateDisposableInstance_args args = new updateDisposableInstance_args(); args.InstanceId = instanceId; args.ViewCount = viewCount; args.ViewTimeLimit = viewTimeLimit; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }