コード例 #1
0
 public override Task <ThroughputResponse> ReadThroughputAsync(
     RequestOptions requestOptions,
     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReadThroughputAsync(requestOptions, cancellationToken)));
 }
コード例 #2
0
 public override Task <ResponseMessage> ReadNextAsync(ITrace trace, CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.feedIteratorInternal.ReadNextAsync(trace, cancellationToken)));
 }
コード例 #3
0
 public override Task <ResponseMessage> DeleteContainerStreamAsync(
     ContainerRequestOptions requestOptions = null,
     CancellationToken cancellationToken    = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.DeleteContainerStreamAsync(requestOptions, cancellationToken)));
 }
コード例 #4
0
 public override Task <int?> ReadThroughputAsync(CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReadThroughputAsync(cancellationToken)));
 }
コード例 #5
0
 public override Task <IEnumerable <string> > GetPartitionKeyRangesAsync(
     FeedToken feedToken,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.GetPartitionKeyRangesAsync(feedToken, cancellationToken)));
 }
コード例 #6
0
 public override Task <ContainerResponse> ReadContainerAsync(
     ContainerRequestOptions requestOptions = null,
     CancellationToken cancellationToken    = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReadContainerAsync(requestOptions, cancellationToken)));
 }
コード例 #7
0
 Task <ThroughputResponse> ReplaceThroughputPropertiesAsync(ThroughputProperties throughputProperties, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.ReplaceThroughputPropertiesAsync(throughputProperties, requestOptions, cancellationToken)));
 }
コード例 #8
0
 public override Task <IReadOnlyList <FeedToken> > GetFeedTokensAsync(CancellationToken cancellationToken = default(CancellationToken))
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.container.GetFeedTokensAsync(cancellationToken)));
 }
コード例 #9
0
 public override Task <DatabaseResponse> DeleteAsync(
     RequestOptions requestOptions       = null,
     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.DeleteAsync(requestOptions, cancellationToken)));
 }
コード例 #10
0
 public override Task <UserResponse> CreateUserAsync(string id,
                                                     RequestOptions requestOptions       = null,
                                                     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.CreateUserAsync(id, requestOptions, cancellationToken)));
 }
コード例 #11
0
 public override Task <ResponseMessage> ReadStreamAsync(
     RequestOptions requestOptions       = null,
     CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.ReadStreamAsync(requestOptions, cancellationToken)));
 }
コード例 #12
0
 public override Task<FeedResponse<T>> ReadNextAsync(CancellationToken cancellationToken = default)
 {
     return TaskHelper.RunInlineIfNeededAsync(() => this.feedIteratorInternal.ReadNextAsync(cancellationToken));
 }
コード例 #13
0
 Task <ContainerResponse> CreateContainerAsync(ContainerProperties containerProperties, ThroughputProperties throughputProperties, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(TaskHelper.RunInlineIfNeededAsync(() => this.database.CreateContainerAsync(containerProperties, throughputProperties, requestOptions, cancellationToken)));
 }