public async global::System.Threading.Tasks.Task emitBatch_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken)
            {
                var args = new InternalStructs.emitBatchArgs();
                await args.ReadAsync(iprot, cancellationToken);

                await iprot.ReadMessageEndAsync(cancellationToken);

                try
                {
                    await _iAsync.emitBatchAsync(args.Batch, cancellationToken);
                }
                catch (TTransportException)
                {
                    throw;
                }
                catch (Exception ex)
                {
                    var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}";
                    if (_logger != null)
                    {
                        _logger.LogError(ex, sErr);
                    }
                    else
                    {
                        Console.Error.WriteLine(sErr);
                    }
                }
            }
            public async global::System.Threading.Tasks.Task emitBatchAsync(global::Jaeger.Thrift.Batch batch, CancellationToken cancellationToken = default)
            {
                await OutputProtocol.WriteMessageBeginAsync(new TMessage("emitBatch", TMessageType.Oneway, SeqId), cancellationToken);

                var args = new InternalStructs.emitBatchArgs()
                {
                    Batch = batch,
                };

                await args.WriteAsync(OutputProtocol, cancellationToken);

                await OutputProtocol.WriteMessageEndAsync(cancellationToken);

                await OutputProtocol.Transport.FlushAsync(cancellationToken);
            }