public async override Task <ThroughputResponse> ReplaceThroughputAsync( int throughput, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { string rid = await this.GetRIDAsync(cancellationToken); CosmosOffers cosmosOffers = new CosmosOffers(this.ClientContext); return(await cosmosOffers.ReplaceThroughputAsync( targetRID : rid, throughput : throughput, requestOptions : requestOptions, cancellationToken : cancellationToken)); }
public async Task <ThroughputResponse> ReplaceThroughputAsync( CosmosDiagnosticsContext diagnosticsContext, int throughput, RequestOptions requestOptions, CancellationToken cancellationToken) { string rid = await this.GetRIDAsync(cancellationToken); CosmosOffers cosmosOffers = new CosmosOffers(this.ClientContext); return(await cosmosOffers.ReplaceThroughputAsync( targetRID : rid, throughput : throughput, requestOptions : requestOptions, cancellationToken : cancellationToken)); }