Skip to content

Commit b06d6c3

Browse files
making ChangeFeedMode.LatestVersion accessible to the public (#3854)
1 parent 1a8b7f0 commit b06d6c3

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

Microsoft.Azure.Cosmos/src/ChangeFeed/ChangeFeedMode.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ internal ChangeFeedMode()
3838
/// Latest version mode includes item creations and updates, not deletions.
3939
/// </remarks>
4040
/// <returns>A <see cref="ChangeFeedMode"/> to receive latest version item changes.</returns>
41-
#if PREVIEW
42-
public
43-
#else
44-
internal
45-
#endif
46-
static ChangeFeedMode LatestVersion => ChangeFeedModeIncremental.Instance;
41+
public static ChangeFeedMode LatestVersion => ChangeFeedModeIncremental.Instance;
4742

4843
/// <summary>
4944
/// Creates a <see cref="ChangeFeedMode"/> to receive notifications for creations, deletes, as well as all intermediary snapshots for updates.

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetPreviewSDKAPI.json

-10
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,6 @@
169169
"Type": "Method",
170170
"Attributes": [],
171171
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedMode get_AllVersionsAndDeletes();IsAbstract:False;IsStatic:True;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
172-
},
173-
"Microsoft.Azure.Cosmos.ChangeFeedMode get_LatestVersion()": {
174-
"Type": "Method",
175-
"Attributes": [],
176-
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedMode get_LatestVersion();IsAbstract:False;IsStatic:True;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
177-
},
178-
"Microsoft.Azure.Cosmos.ChangeFeedMode LatestVersion": {
179-
"Type": "Property",
180-
"Attributes": [],
181-
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedMode LatestVersion;CanRead:True;CanWrite:False;Microsoft.Azure.Cosmos.ChangeFeedMode get_LatestVersion();IsAbstract:False;IsStatic:True;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
182172
}
183173
},
184174
"NestedTypes": {}

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetSDKAPI.json

+10
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,20 @@
307307
"Attributes": [],
308308
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedMode get_Incremental();IsAbstract:False;IsStatic:True;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
309309
},
310+
"Microsoft.Azure.Cosmos.ChangeFeedMode get_LatestVersion()": {
311+
"Type": "Method",
312+
"Attributes": [],
313+
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedMode get_LatestVersion();IsAbstract:False;IsStatic:True;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
314+
},
310315
"Microsoft.Azure.Cosmos.ChangeFeedMode Incremental": {
311316
"Type": "Property",
312317
"Attributes": [],
313318
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedMode Incremental;CanRead:True;CanWrite:False;Microsoft.Azure.Cosmos.ChangeFeedMode get_Incremental();IsAbstract:False;IsStatic:True;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
319+
},
320+
"Microsoft.Azure.Cosmos.ChangeFeedMode LatestVersion": {
321+
"Type": "Property",
322+
"Attributes": [],
323+
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedMode LatestVersion;CanRead:True;CanWrite:False;Microsoft.Azure.Cosmos.ChangeFeedMode get_LatestVersion();IsAbstract:False;IsStatic:True;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
314324
}
315325
},
316326
"NestedTypes": {}

0 commit comments

Comments
 (0)