-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from christianhelle/main
Introduce Low Priority Readers and Writers using the Preview version of the Cosmos SDK
- Loading branch information
Showing
34 changed files
with
3,419 additions
and
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"dotnet.defaultSolution": "Atc.Cosmos.sln" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#if PREVIEW | ||
namespace Atc.Cosmos | ||
{ | ||
/// <summary> | ||
/// Represents a reader that can perform bulk reads on Cosmos resources using the PriorityLevel Low. | ||
/// </summary> | ||
/// <typeparam name="T"> | ||
/// The type of <see cref="ICosmosResource"/> | ||
/// to be read by this reader. | ||
/// </typeparam> | ||
public interface ILowPriorityCosmosBulkReader<T> | ||
: ICosmosBulkReader<T> | ||
where T : class, ICosmosResource | ||
{ | ||
} | ||
} | ||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#if PREVIEW | ||
namespace Atc.Cosmos | ||
{ | ||
/// <summary> | ||
/// Represents a reader that can perform bulk reads on Cosmos resources using the PriorityLevel Low. | ||
/// </summary> | ||
/// <typeparam name="T"> | ||
/// The type of <see cref="ICosmosResource"/> | ||
/// to be read by this reader. | ||
/// </typeparam> | ||
public interface ILowPriorityCosmosBulkWriter<in T> | ||
: ICosmosBulkWriter<T> | ||
where T : class, ICosmosResource | ||
{ | ||
} | ||
} | ||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#if PREVIEW | ||
namespace Atc.Cosmos | ||
{ | ||
/// <summary> | ||
/// Represents a reader that can read Cosmos resources using the PriorityLevel Low. | ||
/// </summary> | ||
/// <typeparam name="T"> | ||
/// The type of <see cref="ICosmosResource"/> | ||
/// to be read by this reader. | ||
/// </typeparam> | ||
public interface ILowPriorityCosmosReader<T> | ||
: ICosmosReader<T> | ||
where T : class, ICosmosResource | ||
{ | ||
} | ||
} | ||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#if PREVIEW | ||
namespace Atc.Cosmos | ||
{ | ||
/// <summary> | ||
/// Represents a factory for creating <see cref="ICosmosReader{T}"/> instances. | ||
/// </summary> | ||
public interface ILowPriorityCosmosReaderFactory | ||
{ | ||
/// <summary> | ||
/// Create a <see cref="ICosmosReader{T}"/>. | ||
/// </summary> | ||
/// <typeparam name="TResource">The <see cref="ICosmosResource"/> for the <see cref="ICosmosReader{T}"/>.</typeparam> | ||
/// <returns>A <see cref="ICosmosReader{T}"/>.</returns> | ||
ILowPriorityCosmosReader<TResource> CreateReader<TResource>() | ||
where TResource : class, ICosmosResource; | ||
|
||
/// <summary> | ||
/// Create a <see cref="ICosmosBulkReader{T}"/>. | ||
/// </summary> | ||
/// <typeparam name="TResource">The <see cref="ICosmosResource"/> for the <see cref="ICosmosBulkReader{T}"/>.</typeparam> | ||
/// <returns>A <see cref="ICosmosBulkReader{T}"/>.</returns> | ||
ILowPriorityCosmosBulkReader<TResource> CreateBulkReader<TResource>() | ||
where TResource : class, ICosmosResource; | ||
} | ||
} | ||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#if PREVIEW | ||
namespace Atc.Cosmos | ||
{ | ||
/// <summary> | ||
/// Represents a writer that can write Cosmos resources using the PriorityLevel Low. | ||
/// </summary> | ||
/// <typeparam name="T"> | ||
/// The type of <see cref="ICosmosResource"/> | ||
/// to be read by this reader. | ||
/// </typeparam> | ||
public interface ILowPriorityCosmosWriter<T> | ||
: ICosmosWriter<T> | ||
where T : class, ICosmosResource | ||
{ | ||
} | ||
} | ||
#endif |
Oops, something went wrong.