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

Add serviceId parameters to ClientBuilder/ServiceHostBuilder helper methods #4469

Closed
wants to merge 2 commits into from

Conversation

benjaminpetit
Copy link
Member

Fix for #4468

With this PR, test failures from PR #4450 should be gone.

I added check to not override ClusterId/ServiceId set from this methods if they were set explicitely by a call to Configure<ClusterOptions> before calling them.

@ReubenBond
Copy link
Member

ReubenBond commented Apr 13, 2018

Take a look at #4438

The middle commit does roughly what you're doing in this PR

{
return builder.UseStaticClustering(new IPEndPoint(IPAddress.Loopback, gatewayPort))
.Configure<ClusterOptions>(options =>
{
if (!string.IsNullOrWhiteSpace(clusterId)) options.ClusterId = clusterId;
if (string.IsNullOrWhiteSpace(options.ClusterId)) options.ClusterId = clusterId;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use PostConfigure instead of Configure for this kind of fallback configuration

@ReubenBond ReubenBond self-assigned this Apr 16, 2018
@ReubenBond
Copy link
Member

We can close this since it was included in #4438

@ReubenBond ReubenBond closed this Apr 25, 2018
@benjaminpetit benjaminpetit deleted the dev-clusterid branch August 14, 2019 16:42
@github-actions github-actions bot locked and limited conversation to collaborators Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants