Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }