-
Notifications
You must be signed in to change notification settings - Fork 517
Hedging: Adds Read hedging PREVIEW contracts #4598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
microsoft-github-policy-service
merged 41 commits into
master
from
users/nalutripician/hedgingPreviewAPIs
Aug 29, 2024
Merged
Changes from 27 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
d26111e
Update contracts
NaluTripician 3028607
removed unneeded changes
NaluTripician e444eb2
made other contracts public
NaluTripician a0c6bc7
update enable method
NaluTripician ddfc265
comments
NaluTripician b3d3cc7
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician 2bab5b6
contract update
NaluTripician 49d6150
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician bd0a406
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician f40e734
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician 02cc8bb
changed eneabled to internal
NaluTripician f7da9f0
fixed internal method
NaluTripician da73fa6
Revert "fixed internal method"
NaluTripician e9b3d93
revert + change methods to internal
NaluTripician 28addfc
fixed internal
NaluTripician 9340015
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician 97509fc
changed to factory creation
NaluTripician 1665cdb
disabledstrat fix
NaluTripician bd4f0f4
fixed test + contracts
NaluTripician 43713ee
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician 343b3eb
xml changes
NaluTripician c2f352b
Merge branch 'users/nalutripician/hedgingPreviewAPIs' of https://gith…
NaluTripician 391c20f
updated comments
NaluTripician 98bc27b
Fixed Tests
NaluTripician 02b94d2
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician 2010458
requested changes
NaluTripician 2ceae54
added client options check and one region check
NaluTripician 8fde5bf
fix get
NaluTripician a779ab8
fixed test
NaluTripician c9e5023
fixed set
NaluTripician c046248
fix client options
NaluTripician 6f04933
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician dfb0a54
updatecontracts
NaluTripician 6bb9e31
requested changes
NaluTripician 0e9c7a8
fixed validate method
NaluTripician 0bf56c5
Delete MultiRegionSetupHelpers.cs
NaluTripician 1a24ebc
update contracts
NaluTripician 499fa56
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician 5d3fdce
Merge branch 'master' into users/nalutripician/hedgingPreviewAPIs
NaluTripician 0f9ee95
fixed merge
NaluTripician 8ae8813
fixed check
NaluTripician File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Microsoft.Azure.Cosmos/src/Routing/AvailabilityStrategy/AvailabilityStrategyInternal.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// ------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// ------------------------------------------------------------ | ||
|
||
namespace Microsoft.Azure.Cosmos | ||
{ | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
internal abstract class AvailabilityStrategyInternal : AvailabilityStrategy | ||
{ | ||
/// <summary> | ||
/// Execute the availability strategy | ||
/// </summary> | ||
/// <param name="sender"></param> | ||
/// <param name="client"></param> | ||
/// <param name="requestMessage"></param> | ||
/// <param name="cancellationToken"></param> | ||
/// <returns>The response from the service after the availability strategy is executed</returns> | ||
internal abstract Task<ResponseMessage> ExecuteAvailabilityStrategyAsync( | ||
Func<RequestMessage, CancellationToken, Task<ResponseMessage>> sender, | ||
CosmosClient client, | ||
RequestMessage requestMessage, | ||
CancellationToken cancellationToken); | ||
|
||
/// <summary> | ||
/// Checks to see if the strategy is enabled | ||
/// </summary> | ||
/// <returns>a bool representing if the strategy is enabled</returns> | ||
internal abstract bool Enabled(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.