public void Read(TProtocol iprot)
            {
                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)
                        {
                            Evt = new ThriftFlumeEvent();
                            Evt.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
            public Status append(ThriftFlumeEvent evt)
            {
#if !SILVERLIGHT
                send_append(evt);
                return(recv_append());
#else
                var asyncResult = Begin_append(null, null, evt);
                return(End_append(asyncResult));
#endif
            }
            public void send_append(ThriftFlumeEvent evt)
#endif
            {
                oprot_.WriteMessageBegin(new TMessage("append", TMessageType.Call, seqid_));
                append_args args = new append_args();

                args.Evt = evt;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
#if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
#else
                oprot_.Transport.Flush();
#endif
            }
            public void Read(TProtocol iprot)
            {
                TField field;

                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 1:
                        if (field.Type == TType.List)
                        {
                            {
                                Evts = new List <ThriftFlumeEvent>();
                                TList _list5 = iprot.ReadListBegin();
                                for (int _i6 = 0; _i6 < _list5.Count; ++_i6)
                                {
                                    ThriftFlumeEvent _elem7 = new ThriftFlumeEvent();
                                    _elem7 = new ThriftFlumeEvent();
                                    _elem7.Read(iprot);
                                    Evts.Add(_elem7);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
 public IAsyncResult send_append(AsyncCallback callback, object state, ThriftFlumeEvent evt)
 public IAsyncResult Begin_append(AsyncCallback callback, object state, ThriftFlumeEvent evt)
 {
     return(send_append(callback, state, evt));
 }