Skip to content

Commit

Permalink
Code changes to update files to match with v3 master.
Browse files Browse the repository at this point in the history
  • Loading branch information
kundadebdatta committed Jul 21, 2023
1 parent 750914c commit 33470ea
Show file tree
Hide file tree
Showing 7 changed files with 2,655 additions and 1,775 deletions.
21 changes: 0 additions & 21 deletions Microsoft.Azure.Cosmos/src/Fluent/CosmosClientBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -621,27 +621,6 @@ public CosmosClientBuilder WithContentResponseOnWrite(bool contentResponseOnWrit
return this;
}

/// <summary>
/// Gets or sets the boolean to only return the headers and status code in
/// the Cosmos DB response for write item operation like Create, Upsert, Patch and Replace.
/// Setting the option to false will cause the response to have a null resource. This reduces networking and CPU load by not sending
/// the resource back over the network and serializing it on the client.
/// </summary>
/// <param name="replicaValidationEnabled">a boolean indicating whether payload will be included in the response or not.</param>
/// <remarks>
/// <para>
/// This option can be overriden by similar property in ItemRequestOptions and TransactionalBatchItemRequestOptions
/// </para>
/// </remarks>
/// <returns>The <see cref="CosmosClientBuilder"/> object</returns>
/// <seealso cref="ItemRequestOptions.EnableContentResponseOnWrite"/>
/// <seealso cref="TransactionalBatchItemRequestOptions.EnableContentResponseOnWrite"/>
public CosmosClientBuilder WithReplicaValidation(bool replicaValidationEnabled)
{
this.clientOptions.EnableReplicaValidation = replicaValidationEnabled;
return this;
}

/// <summary>
/// The event handler to be invoked before the request is sent.
/// </summary>
Expand Down
7 changes: 6 additions & 1 deletion Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</PropertyGroup>

<ItemGroup>
<None Include="..\..\LICENSE" Pack="true" PackagePath="" Visible="false"/>
<None Include="..\..\LICENSE" Pack="true" PackagePath="" Visible="false" />
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -96,6 +96,11 @@
<AutoGen>True</AutoGen>
<DependentUpon>SystemStrings.tt</DependentUpon>
</Compile>
<Compile Update="RMResources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>RMResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="ClientResources.resx">
Expand Down
Loading

0 comments on commit 33470ea

Please sign in to comment.