public void VideoCapture_Process(int seqid, TProtocol iprot, TProtocol oprot) { VideoCapture_args args = new VideoCapture_args(); args.Read(iprot); iprot.ReadMessageEnd(); VideoCapture_result result = new VideoCapture_result(); try { iface_.VideoCapture(args.Arguments); oprot.WriteMessageBegin(new TMessage("VideoCapture", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("VideoCapture", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_VideoCapture() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } VideoCapture_result result = new VideoCapture_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); return; }