Skip to content

Commit e872f93

Browse files
Client Encryption: Adds release version of Microsoft.Azure.Cosmos to Microsoft.Azure.Cosmos.Encryption.Custom (#3799)
* cosmos version change * changing preview to release * resolving code review comments --------- Co-authored-by: Santosh Kulkarni <66682828+kr-santosh@users.noreply.github.com>
1 parent 0d0ffe0 commit e872f93

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

Microsoft.Azure.Cosmos.Encryption.Custom/src/EncryptionContainer.cs

+9-7
Original file line numberDiff line numberDiff line change
@@ -791,13 +791,6 @@ public override Task<IReadOnlyList<FeedRange>> GetFeedRangesAsync(
791791
return this.container.GetFeedRangesAsync(cancellationToken);
792792
}
793793

794-
public override Task<IEnumerable<string>> GetPartitionKeyRangesAsync(
795-
FeedRange feedRange,
796-
CancellationToken cancellationToken = default)
797-
{
798-
return this.container.GetPartitionKeyRangesAsync(feedRange, cancellationToken);
799-
}
800-
801794
public override FeedIterator GetItemQueryStreamIterator(
802795
FeedRange feedRange,
803796
QueryDefinition queryDefinition,
@@ -1010,6 +1003,14 @@ public override async Task<FeedResponse<T>> ReadManyItemsAsync<T>(
10101003
return this.ResponseFactory.CreateItemFeedResponse<T>(responseMessage);
10111004
}
10121005

1006+
#if ENCRYPTIONPREVIEW
1007+
public override Task<IEnumerable<string>> GetPartitionKeyRangesAsync(
1008+
FeedRange feedRange,
1009+
CancellationToken cancellationToken = default)
1010+
{
1011+
return this.container.GetPartitionKeyRangesAsync(feedRange, cancellationToken);
1012+
}
1013+
10131014
public override Task<ResponseMessage> DeleteAllItemsByPartitionKeyStreamAsync(
10141015
Cosmos.PartitionKey partitionKey,
10151016
RequestOptions requestOptions = null,
@@ -1020,6 +1021,7 @@ public override Task<ResponseMessage> DeleteAllItemsByPartitionKeyStreamAsync(
10201021
requestOptions,
10211022
cancellationToken);
10221023
}
1024+
#endif
10231025

10241026
private async Task<ResponseMessage> ReadManyItemsHelperAsync(
10251027
IReadOnlyList<(string id, PartitionKey partitionKey)> items,

Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<AssemblyName>Microsoft.Azure.Cosmos.Encryption.Custom</AssemblyName>
55
<RootNamespace>Microsoft.Azure.Cosmos.Encryption.Custom</RootNamespace>
66
<LangVersion>$(LangVersion)</LangVersion>
7-
<IsPreview>true</IsPreview>
8-
97
<CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd))</CurrentDate>
108
<Version>$(CustomEncryptionVersion)</Version>
119
<Company>Microsoft Corporation</Company>
@@ -24,8 +22,12 @@
2422
<AdditionalFiles Include="..\..\Microsoft.Azure.Cosmos\src\stylecop.json" Link="stylecop.json" />
2523
</ItemGroup>
2624

27-
<ItemGroup Condition=" '$(SdkProjectRef)' != 'True' ">
28-
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.26.0-preview" />
25+
<ItemGroup Condition=" '$(SdkProjectRef)' != 'True' AND '$(IsPreview)' != 'True' ">
26+
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.32.3" />
27+
</ItemGroup>
28+
29+
<ItemGroup Condition=" '$(SdkProjectRef)' != 'True' AND '$(IsPreview)' == 'True' ">
30+
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.26.0-preview" />
2931
</ItemGroup>
3032

3133
<ItemGroup Condition=" '$(SdkProjectRef)' == 'True' ">

0 commit comments

Comments
 (0)