public IAsyncResult send_OnEvent(AsyncCallback callback, object state, MCoSimulationEvents @event) { oprot_.WriteMessageBegin(new TMessage("OnEvent", TMessageType.Call, seqid_)); OnEvent_args args = new OnEvent_args(); args.Event = @event; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }
public void send_OnEvent(MCoSimulationEvents @event) { oprot_.WriteMessageBegin(new TMessage("OnEvent", TMessageType.Call, seqid_)); OnEvent_args args = new OnEvent_args(); args.Event = @event; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void OnEvent(MCoSimulationEvents @event) { #if SILVERLIGHT var asyncResult = Begin_OnEvent(null, null, @event); End_OnEvent(asyncResult); #else send_OnEvent(@event); recv_OnEvent(); #endif }
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) { Event = new MCoSimulationEvents(); Event.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_OnEvent(AsyncCallback callback, object state, MCoSimulationEvents @event) { return(send_OnEvent(callback, state, @event)); }