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

Changed cluster client api to use IEnumerable for InitialContacts. #2602

Closed
wants to merge 5 commits into from
Closed

Changed cluster client api to use IEnumerable for InitialContacts. #2602

wants to merge 5 commits into from

Conversation

Danthar
Copy link
Member

@Danthar Danthar commented Apr 11, 2017

And updated usage patterns in tests and examples

@Danthar
Copy link
Member Author

Danthar commented Apr 11, 2017

Will need probably api approval. But i'm going to wait after review.

@Aaronontheweb
Copy link
Member

ClusterClientConfigSpec.ClusterClientSettings_must_throw_exception_on_empty_initial_contacts - failed.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

I could take it or leave it with this PR. I'm not bothered by exposing System.Collections.Immutable in the constructor one way or another.

@@ -113,7 +113,7 @@ public static ClusterClientSettings Create(Config config)
/// <param name="reconnectTimeout">TBD</param>
/// <exception cref="ArgumentException">TBD</exception>
public ClusterClientSettings(
IImmutableSet<ActorPath> initialContacts,
IEnumerable<ActorPath> initialContacts,
Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me.

@@ -69,15 +70,13 @@ protected ClusterClientStartSpec(ClusterClientStartSpecConfig config) : base(con

protected override int InitialParticipantsValueFactory => 3;

private ImmutableHashSet<ActorPath> InitialContacts
private IEnumerable<ActorPath> InitialContacts
{
get
{
//return new List<ActorPath>().ToImmutableHashSet();
Copy link
Member

Choose a reason for hiding this comment

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

Delete this.

@alexvaluyskiy
Copy link
Contributor

@Danthar We can't merge this Pull Request anymore, because Cluster Tools become stable. Just make another constructor and overloaded method WithInitialContacts

@Danthar
Copy link
Member Author

Danthar commented Apr 14, 2017

I was going to update this PR. But I changed my mind. Adding a constructor overload defeats the purpose of this PR.

@Danthar Danthar closed this Apr 14, 2017
@Danthar Danthar deleted the clusterclientconfig-api branch July 28, 2017 08:12
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.

None yet

3 participants