-
Notifications
You must be signed in to change notification settings - Fork 16
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 ClusterClientDiscovery Hosting extension support #478
Add ClusterClientDiscovery Hosting extension support #478
Conversation
# Conflicts: # src/Directory.Build.props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't reference any part of Akka.Management in this project. That will create a dependency cycle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions
/// <see cref="ClusterClientDiscovery"/> to work, you <b>will need</b> to set | ||
/// <c>DiscoveryOptions.IsDefaultPlugin</c> to <c>false</c> | ||
/// </summary> | ||
public IHoconOption DiscoveryOptions { get; set; } = null!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per our call, use IDiscoveryOption
or whatever here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
private void Validate() | ||
{ | ||
var type = DiscoveryOptions.GetType().Name; | ||
if(!(type.Contains("ConfigServiceDiscoveryOptions") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than do stringly-typed stuff, use the IDiscoveryOption
type we proposed on the call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
ClusterClientDiscoveryOptions
classClusterClient
extensions methodsWithClusterClientDiscovery
that allows users to useClusterClientDiscovery