-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for consistency headers (#8)
The service now supports x-ms-consistency-level and x-ms-session-token HTTP headers for controlling Cosmos DB consistency. There is also a configuration setting for the default consistency level to use. We're adding the HTTP request and response headers to the IFhirContext, and a DocumentClientWithConsistencyLevelFromContext class, which implements IDocumentClient, is responsible biding a database request's consistency settings with the IFhirContext's headers. Most of DocumentClientWithConsistencyLevelFromContext is generated at build time (with incremental build awareness) with a tool. This tool uses Roslyn to generate the code and can be used in the future for other coge generation needs (such as an instrumented IDocumentClient for telemetry).
- Loading branch information
1 parent
1848a29
commit 1528b10
Showing
24 changed files
with
2,288 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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.