public emitBatchArgs DeepCopy() { var tmp6 = new emitBatchArgs(); if ((Batch != null) && __isset.batch) { tmp6.Batch = (global::Jaeger.Thrift.Batch) this.Batch.DeepCopy(); } tmp6.__isset.batch = this.__isset.batch; return(tmp6); }
public async Task emitBatchAsync(Jaeger.Thrift.Batch batch, CancellationToken cancellationToken) { await OutputProtocol.WriteMessageBeginAsync(new TMessage("emitBatch", TMessageType.Oneway, SeqId), cancellationToken); var args = new emitBatchArgs(); args.Batch = batch; await args.WriteAsync(OutputProtocol, cancellationToken); await OutputProtocol.WriteMessageEndAsync(cancellationToken); await OutputProtocol.Transport.FlushAsync(cancellationToken); }
public async Task emitBatch_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken) { var args = new emitBatchArgs(); await args.ReadAsync(iprot, cancellationToken); await iprot.ReadMessageEndAsync(cancellationToken); try { await _iAsync.emitBatchAsync(args.Batch, cancellationToken); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); } }