in client/Apache.ShenYu.Client/Registers/ShenyuAbstractRegister.cs [28:44]
protected string BuildMetadataNodeName(MetaDataRegisterDTO metadata)
{
string nodeName;
string rpcType = metadata.rpcType;
if (Constants.RegisterRpcType.Http.Equals(rpcType) || Constants.RegisterRpcType.SpringCloud.Equals(rpcType))
{
nodeName = string.Join(Constants.SelectorJoinRule, metadata.contextPath,
metadata.ruleName.Replace(Constants.PathSeparator, Constants.SelectorJoinRule));
}
else
{
nodeName = RegisterPathConstants.BuildNodeName(metadata.serviceName, metadata.methodName);
}
return nodeName.StartsWith(Constants.PathSeparator) ? nodeName.Substring(1) : nodeName;
}