Skip to content

Refactor connection string handling in resource classes#212

Merged
ElanHasson merged 1 commit intomainfrom
standardize-connection-strings
Sep 26, 2025
Merged

Refactor connection string handling in resource classes#212
ElanHasson merged 1 commit intomainfrom
standardize-connection-strings

Conversation

@ElanHasson
Copy link
Copy Markdown
Contributor

Removed the GetConnectionString method from TemporalServerExecutableResource and TemporalServerContainerResource. Updated the ConnectionStringExpression property in both classes to directly use the GetEndpoint method with the "server" endpoint and EndpointProperty.HostAndPort. This simplifies the code, reduces redundancy, and improves maintainability.

Removed the `GetConnectionString` method from `TemporalServerExecutableResource` and `TemporalServerContainerResource`. Updated the `ConnectionStringExpression` property in both classes to directly use the `GetEndpoint` method with the "server" endpoint and `EndpointProperty.HostAndPort`. This simplifies the code, reduces redundancy, and improves maintainability.
@ElanHasson ElanHasson merged commit f4efb6c into main Sep 26, 2025
2 of 3 checks passed
@ElanHasson ElanHasson deleted the standardize-connection-strings branch September 26, 2025 19:41
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