コード例 #1
0
        public override async Task <ThroughputResponse> ReadThroughputAsync(
            RequestOptions requestOptions,
            CancellationToken cancellationToken = default(CancellationToken))
        {
            string rid = await this.GetRIDAsync(cancellationToken);

            CosmosOffers cosmosOffers = new CosmosOffers(this.ClientContext);

            return(await cosmosOffers.ReadThroughputAsync(rid, requestOptions, cancellationToken));
        }
コード例 #2
0
        public async Task <ThroughputResponse> ReadThroughputAsync(
            RequestOptions requestOptions,
            ITrace trace,
            CancellationToken cancellationToken)
        {
            string rid = await this.GetRIDAsync(cancellationToken);

            CosmosOffers cosmosOffers = new CosmosOffers(this.ClientContext);

            return(await cosmosOffers.ReadThroughputAsync(
                       targetRID : rid,
                       requestOptions : requestOptions,
                       cancellationToken : cancellationToken));
        }