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

Added check for URI when verifying if emulator connection string #516

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MattHartz
Copy link

When using AddCosmosRepositoryClient, options and clientOptions successfully process when using a connection string. But when a named connection string that represents the "AccountEndpoint", options' action successfully processes it as an AccountEndpoint that will use DefaultCredential but IsEmulatorConnectionString throws an exception when creating the DbConnectionStringBuilder

When using AddCosmosRepositoryClient, options and clientOptions successfully process when using a connection string. But when a named connection string that represents the "AccountEndpoint", options' action successfully processes it as an AccountEndpoint that will use DefaultCredential but  IsEmulatorConnectionString throws an exception when creating the DbConnectionStringBuilder
@MattHartz
Copy link
Author

Small issue I noticed when playing around test containers. Works just great when using a locally running emulator, but when I specify a cloud cosmos, via just the URI, it would throw exceptions. I found that the culprit it the string extensions method.

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.

2 participants