Exemple #1
0
            public async global::System.Threading.Tasks.Task saveDependenciesAsync(global::Jaeger.Thrift.Agent.Dependencies dependencies, CancellationToken cancellationToken = default)
            {
                await OutputProtocol.WriteMessageBeginAsync(new TMessage("saveDependencies", TMessageType.Oneway, SeqId), cancellationToken);

                var args = new InternalStructs.saveDependenciesArgs()
                {
                    Dependencies = dependencies,
                };

                await args.WriteAsync(OutputProtocol, cancellationToken);

                await OutputProtocol.WriteMessageEndAsync(cancellationToken);

                await OutputProtocol.Transport.FlushAsync(cancellationToken);
            }
Exemple #2
0
                public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
                {
                    iprot.IncrementRecursionDepth();
                    try
                    {
                        TField field;
                        await iprot.ReadStructBeginAsync(cancellationToken);

                        while (true)
                        {
                            field = await iprot.ReadFieldBeginAsync(cancellationToken);

                            if (field.Type == TType.Stop)
                            {
                                break;
                            }

                            switch (field.ID)
                            {
                            case 1:
                                if (field.Type == TType.Struct)
                                {
                                    Dependencies = new global::Jaeger.Thrift.Agent.Dependencies();
                                    await Dependencies.ReadAsync(iprot, cancellationToken);
                                }
                                else
                                {
                                    await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
                                }
                                break;

                            default:
                                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);

                                break;
                            }

                            await iprot.ReadFieldEndAsync(cancellationToken);
                        }

                        await iprot.ReadStructEndAsync(cancellationToken);
                    }
                    finally
                    {
                        iprot.DecrementRecursionDepth();
                    }
                }