public override Task <ThroughputResponse> ReadThroughputAsync(
     RequestOptions requestOptions,
     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReadThroughputAsync(requestOptions, cancellationToken)));
 }
Exemple #2
0
 public override Task <ResponseMessage> ReadNextAsync(ITrace trace, CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.feedIteratorInternal.ReadNextAsync(trace, cancellationToken)));
 }
 public override Task <ResponseMessage> DeleteContainerStreamAsync(
     ContainerRequestOptions requestOptions = null,
     CancellationToken cancellationToken    = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.DeleteContainerStreamAsync(requestOptions, cancellationToken)));
 }
 public override Task <int?> ReadThroughputAsync(CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReadThroughputAsync(cancellationToken)));
 }
 public override Task <IEnumerable <string> > GetPartitionKeyRangesAsync(
     FeedToken feedToken,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.GetPartitionKeyRangesAsync(feedToken, cancellationToken)));
 }
 public override Task <ContainerResponse> ReadContainerAsync(
     ContainerRequestOptions requestOptions = null,
     CancellationToken cancellationToken    = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReadContainerAsync(requestOptions, cancellationToken)));
 }
 Task <ThroughputResponse> ReplaceThroughputPropertiesAsync(ThroughputProperties throughputProperties, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReplaceThroughputPropertiesAsync(throughputProperties, requestOptions, cancellationToken)));
 }
 public override Task <IReadOnlyList <FeedToken> > GetFeedTokensAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.GetFeedTokensAsync(cancellationToken)));
 }
 public override Task <DatabaseResponse> DeleteAsync(
     RequestOptions requestOptions       = null,
     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.DeleteAsync(requestOptions, cancellationToken)));
 }
 public override Task <UserResponse> CreateUserAsync(string id,
                                                     RequestOptions requestOptions       = null,
                                                     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.CreateUserAsync(id, requestOptions, cancellationToken)));
 }
 public override Task <ResponseMessage> ReadStreamAsync(
     RequestOptions requestOptions       = null,
     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.ReadStreamAsync(requestOptions, cancellationToken)));
 }
 public override Task<FeedResponse<T>> ReadNextAsync(CancellationToken cancellationToken = default)
 {
     return TaskHelper.RunInlineIfNeededAsync(() => this.feedIteratorInternal.ReadNextAsync(cancellationToken));
 }
 Task <ContainerResponse> CreateContainerAsync(ContainerProperties containerProperties, ThroughputProperties throughputProperties, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.CreateContainerAsync(containerProperties, throughputProperties, requestOptions, cancellationToken)));
 }