Beispiel #1
0
        public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
        {
            iprot.IncrementRecursionDepth();
            try
            {
                bool   isset_operationHandle = false;
                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)
                        {
                            OperationHandle = new TOperationHandle();
                            await OperationHandle.ReadAsync(iprot, cancellationToken);

                            isset_operationHandle = true;
                        }
                        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);

                if (!isset_operationHandle)
                {
                    throw new TProtocolException(TProtocolException.INVALID_DATA);
                }
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }
Beispiel #2
0
 public TGetResultSetMetadataReq(TOperationHandle operationHandle) : this()
 {
     this.OperationHandle = operationHandle;
 }
Beispiel #3
0
 public TGetOperationStatusReq(TOperationHandle operationHandle) : this()
 {
     this.OperationHandle = operationHandle;
 }
Beispiel #4
0
 public TFetchResultsReq(TOperationHandle operationHandle, TFetchOrientation orientation, long maxRows) : this()
 {
     this.OperationHandle = operationHandle;
     this.Orientation     = orientation;
     this.MaxRows         = maxRows;
 }
 public TCancelOperationReq(TOperationHandle operationHandle) : this()
 {
     this.OperationHandle = operationHandle;
 }
 public TCloseOperationReq(TOperationHandle operationHandle) : this()
 {
     this.OperationHandle = operationHandle;
 }