-
Notifications
You must be signed in to change notification settings - Fork 180
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
[core] get service id implementation #1875
Conversation
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.
clang-tidy made some suggestions
service_id.service_id.host_name = Process::GetHostName(); | ||
|
||
service_id.service_name = m_service_name; | ||
service_id.method_name = ""; |
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.
Why is the method_name an empty string?
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.
The method_name
field is used in other internal contexts (for example as key in ServiceIdInfoMap
) but here the method name makes no sense. I will introduce a new SServiceId
type additional to the existing SServiceMethodId
for now. The new type will cover service and client instance id's and the other one will be used to get ID's of service-methods. Let me try .. ;-)
…SServiceMethodId type when method name is not needed
Description
Implements
GetServiceId
forCServiceClient
andCServiceServer
.