public void InsertChannel_Process(int seqid, TProtocol iprot, TProtocol oprot) { InsertChannel_args args = new InsertChannel_args(); args.Read(iprot); iprot.ReadMessageEnd(); InsertChannel_result result = new InsertChannel_result(); try { iface_.InsertChannel(args.ChannelID, args.SourceComponentID, args.SourcePortID, args.TargetComponentID, args.TargetPortID); } catch (AsapiException asapiEx) { result.AsapiEx = asapiEx; } oprot.WriteMessageBegin(new TMessage("InsertChannel", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_InsertChannel(string channelID, string sourceComponentID, string sourcePortID, string targetComponentID, string targetPortID) { oprot_.WriteMessageBegin(new TMessage("InsertChannel", TMessageType.Call, seqid_)); InsertChannel_args args = new InsertChannel_args(); args.ChannelID = channelID; args.SourceComponentID = sourceComponentID; args.SourcePortID = sourcePortID; args.TargetComponentID = targetComponentID; args.TargetPortID = targetPortID; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }