Skip to content

Commit 56cc6af

Browse files
committed
rm netcoreapp31 and some changes
Signed-off-by: catcherwong <[email protected]>
1 parent 2f77ac5 commit 56cc6af

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

src/Nacos.AspNetCore/Nacos.AspNetCore.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="../../build/version.props" />
33

44
<PropertyGroup>
5-
<TargetFrameworks>netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
5+
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
66
<PackageId>nacos-sdk-csharp.AspNetCore</PackageId>
77
<VersionPrefix>$(NugetVersion)</VersionPrefix>
88
<VersionSuffix></VersionSuffix>
@@ -14,7 +14,7 @@
1414
<ProjectUrl>https://github.com/nacos-group/nacos-sdk-csharp</ProjectUrl>
1515
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1616
<PackageReadmeFile>README.md</PackageReadmeFile>
17-
<PackageReleaseNotes>
17+
<PackageReleaseNotes>
1818
</PackageReleaseNotes>
1919
</PropertyGroup>
2020

src/Nacos/V2/Remote/GRpc/GrpcClient.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ private CommonResponse ServerCheck(Grpc.Net.Client.GrpcChannel channel)
149149
{
150150
try
151151
{
152+
if (request is SetupAckRequest)
153+
{
154+
// there is no connection ready this time
155+
return;
156+
}
157+
152158
var response = HandleServerRequest(request);
153159
response.RequestId = request.RequestId;
154160
await call.RequestStream.WriteAsync(GrpcUtils.Convert(response)).ConfigureAwait(false);

src/Nacos/V2/Remote/RemoteRequestType.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public static class RemoteRequestType
3636

3737
public static readonly string Req_ServerCheck = "ServerCheckRequest";
3838

39+
public static readonly string Req_SetupAck = "SetupAckRequest";
40+
3941
public static readonly string Req_Config_ReSync = "ConfigReSyncRequest";
4042

4143
public static readonly string Resp_Config_Pubish_Alpha2 = "ConfigPublishResponse";
@@ -68,6 +70,8 @@ public static class RemoteRequestType
6870

6971
public static readonly string Resp_ServerCheck = "ServerCheckResponse";
7072

73+
public static readonly string Resp_SetupAck = "SetupAckResponse";
74+
7175
public static readonly string Req_PushAck = "PushAckRequest";
7276

7377
public static readonly string Req_ConnectReset = "ConnectResetRequest";
@@ -113,6 +117,8 @@ public static class RemoteRequestType
113117
{ Resp_Naming_NotifySubscriber, typeof(NotifySubscriberResponse) },
114118
{ Req_Naming_BatchInstance, typeof(BatchInstanceRequest) },
115119
{ Resp_Naming_BatchInstance, typeof(BatchInstanceResponse) },
120+
{ Req_SetupAck, typeof(SetupAckRequest) },
121+
{ Resp_SetupAck, typeof(SetupAckResponse) },
116122
};
117123
}
118124
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace Nacos.V2.Remote.Requests
2+
{
3+
using System.Collections.Generic;
4+
5+
public class SetupAckRequest : CommonRequest
6+
{
7+
public Dictionary<string, bool> AbilityTable { get; set; }
8+
9+
public override string GetRemoteType() => RemoteRequestType.Req_SetupAck;
10+
}
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Nacos.V2.Remote.Responses
2+
{
3+
public class SetupAckResponse : CommonResponse
4+
{
5+
public override string GetRemoteType() => RemoteRequestType.Resp_SetupAck;
6+
}
7+
}

0 commit comments

Comments
 (0)