Skip to content

Commit

Permalink
Reverting DocumentClientWithUriParameters changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Willey committed Aug 9, 2019
1 parent 5de82a6 commit febd523
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Microsoft.Azure.Cosmos/src/DocumentClientWithUriParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private async Task<ResourceResponse<DocumentCollection>> CreateDocumentCollectio
{
throw new ArgumentNullException("databaseUri");
}

if (documentCollection == null)
{
throw new ArgumentNullException("documentCollection");
Expand All @@ -84,7 +84,7 @@ private async Task<ResourceResponse<DocumentCollection>> CreateDocumentCollectio
databaseUri.OriginalString, Paths.CollectionsPathSegment, Uri.EscapeUriString(documentCollection.Id)), UriKind.Relative);

try
{
{
return await this.ReadDocumentCollectionAsync(documentCollectionUri, options);
}
catch (DocumentClientException dce)
Expand Down Expand Up @@ -403,9 +403,9 @@ public Task<ResourceResponse<DocumentCollection>> ReplaceDocumentCollectionAsync

IDocumentClientRetryPolicy retryPolicyInstance = this.ResetSessionTokenRetryPolicy.GetRequestPolicy();
return TaskHelper.InlineIfPossible(() => this.ReplaceDocumentCollectionPrivateAsync(
documentCollection,
options,
retryPolicyInstance,
documentCollection,
options,
retryPolicyInstance,
documentCollectionUri.OriginalString), retryPolicyInstance);
}

Expand All @@ -425,11 +425,11 @@ public Task<ResourceResponse<StoredProcedure>> ReplaceStoredProcedureAsync(Uri s

IDocumentClientRetryPolicy retryPolicyInstance = this.ResetSessionTokenRetryPolicy.GetRequestPolicy();
return TaskHelper.InlineIfPossible(() => this.ReplaceStoredProcedurePrivateAsync(
storedProcedure,
options,
storedProcedure,
options,
retryPolicyInstance,
storedProcedureUri.OriginalString), retryPolicyInstance);
}
}

/// <summary>
/// Replaces a trigger as an asynchronous operation in the Azure Cosmos DB service.
Expand Down Expand Up @@ -465,7 +465,7 @@ public Task<ResourceResponse<UserDefinedFunction>> ReplaceUserDefinedFunctionAsy

IDocumentClientRetryPolicy retryPolicyInstance = this.ResetSessionTokenRetryPolicy.GetRequestPolicy();
return TaskHelper.InlineIfPossible(() => this.ReplaceUserDefinedFunctionPrivateAsync(function, options, retryPolicyInstance, userDefinedFunctionUri.OriginalString), retryPolicyInstance);
}
}

/// <summary>
/// Replaces a user defined type as an asynchronous operation in the Azure Cosmos DB service.
Expand Down Expand Up @@ -1234,7 +1234,7 @@ internal Task<DocumentFeedResponse<Schema>> ReadSchemaFeedAsync(Uri schemasUri,
/// <param name="databaseUri">the URI to the database.</param>
/// <param name="feedOptions">The options for processing the query results feed.</param>
/// <returns>The query result set.</returns>
public IOrderedQueryable<DocumentCollection> CreateDocumentCollectionQuery(Uri databaseUri, FeedOptions feedOptions = null)
public IOrderedQueryable<DocumentCollection> CreateDocumentCollectionQuery(Uri databaseUri, FeedOptions feedOptions = null)
{
if (databaseUri == null)
{
Expand Down Expand Up @@ -1812,4 +1812,4 @@ internal IDocumentQuery<UserDefinedType> CreateUserDefinedTypeChangeFeedQuery(Ur
}
#endregion Create Query
}
}
}

0 comments on commit febd523

Please sign in to comment.