示例#1
0
 internal Task <ThroughputResponse> ReplaceThroughputIfExistsAsync(
     string targetRID,
     int throughput,
     RequestOptions requestOptions,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.ReplaceThroughputPropertiesIfExistsAsync(
                targetRID,
                ThroughputProperties.CreateFixedThroughput(throughput),
                requestOptions,
                cancellationToken));
 }
        private Task <ResponseMessage> CreateDatabaseStreamInternalAsync(
            Stream streamPayload,
            int?throughput,
            RequestOptions requestOptions,
            CancellationToken cancellationToken)
        {
            ThroughputProperties throughputProperties = null;

            if (throughput.HasValue)
            {
                throughputProperties = ThroughputProperties.CreateFixedThroughput(throughput.Value);
            }

            return(this.CreateDatabaseStreamInternalAsync(
                       streamPayload,
                       throughputProperties,
                       requestOptions,
                       cancellationToken));
        }