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