Skip to content
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

Microsoft.Extensions.Configuration support for Cosmos Clustering Provider #9204

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

OmnipotentOwl
Copy link

@OmnipotentOwl OmnipotentOwl commented Oct 26, 2024

PR Classification

New feature: Introduce support for Cosmos DB clustering provider for Orleans via Microsoft.Extensions.Configuration.

PR Summary

This pull request supports the Cosmos DB clustering provider for Orleans to be configured via Microsoft.Extensions.Configuration, enabling clustering configurations for both Silo and Client roles.

  • CosmosClusteringProviderBuilder.cs: Implemented the CosmosClusteringProviderBuilder class and registered it as a provider.
  • CosmosClusteringOptions.cs: Introduced CosmosClusteringOptions and a validator class.
  • AssemblyInfo.cs: Added [assembly: InternalsVisibleTo("Tester.AzureUtils")] attribute.
Microsoft Reviewers: Open in CodeFlow

Added a `using` directive for `System.Runtime.CompilerServices` and
an assembly attribute `[assembly: InternalsVisibleTo("Tester.AzureUtils")]`
to make internal types visible to the `Tester.AzureUtils` assembly.
Introduce CosmosClusteringProviderBuilder class implementing IProviderBuilder<ISiloBuilder> and IProviderBuilder<IClientBuilder> interfaces. Register the class as a provider for both "Silo" and "Client" roles. Implement Configure methods to set up Cosmos DB clustering options and client configuration. Import necessary namespaces to support the new functionality.

This adds support for using the Cosmos DB Clustering Provider from Orleans IConfiguration setup.
@OmnipotentOwl
Copy link
Author

@dotnet-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant