Merge pull request #4664 from catcherwong/develop

Add CSharp Client
This commit is contained in:
赵延 2021-01-10 18:44:38 +08:00 committed by GitHub
commit aea9f5df76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,15 @@ public class ClientInfo {
return;
}
if (versionStr.startsWith(ClientTypeDescription.CSHARP_CLIENT)) {
type = ClientType.CSHARP;
versionStr = versionStr.substring(versionStr.indexOf(":v") + 2, versionStr.length());
version = VersionUtil.parseVersion(versionStr);
return;
}
//we're not eager to implement other type yet
this.type = ClientType.UNKNOWN;
this.version = Version.unknownVersion();
@ -125,6 +134,10 @@ public class ClientInfo {
* C client type.
*/
C,
/**
* CSharp client type.
*/
CSHARP,
/**
* php client type.
*/
@ -167,6 +180,8 @@ public class ClientInfo {
public static final String GO_CLIENT = "Nacos-Go-Client";
public static final String CSHARP_CLIENT = "Nacos-CSharp-Client";
}
}