Skip to content

Commit

Permalink
升级组件
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Sep 3, 2023
1 parent 3793848 commit 782fd64
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ClientTest/ClientTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="NewLife.Redis" Version="5.5.2023.803" />
<PackageReference Include="NewLife.Redis" Version="5.5.2023.828-beta1607" />
<PackageReference Include="NewLife.UnitTest" Version="1.0.2023.718" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
Expand Down
2 changes: 1 addition & 1 deletion Stardust.Data/Stardust.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.XCode" Version="11.9.2023.823-beta1153" />
<PackageReference Include="NewLife.XCode" Version="11.9.2023.831-beta0724" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Stardust.Server/Stardust.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.Redis" Version="5.5.2023.803" />
<PackageReference Include="NewLife.Redis" Version="5.5.2023.828-beta1607" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Stardust.Web/Stardust.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.Cube.Core" Version="5.5.2023.823-beta1401" />
<PackageReference Include="NewLife.Redis" Version="5.5.2023.803" />
<PackageReference Include="NewLife.Cube.Core" Version="5.5.2023.901-beta1627" />
<PackageReference Include="NewLife.Redis" Version="5.5.2023.828-beta1607" />
</ItemGroup>

<ItemGroup>
Expand Down
20 changes: 14 additions & 6 deletions Stardust/LocalStarClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -447,19 +447,27 @@ public static IEnumerable<AgentInfo> Scan(AgentInfo local = null, Int32 timeout
var rs = new DefaultMessage();
IPEndPoint ep = null;
buf = udp.Receive(ref ep);
#if NET40
if (buf != null && rs.Read(buf) && encoder.Decode(rs, out var action, out _, out var data))
{
//ms = rs.Payload.GetStream();
//var reader=new BinaryReader(ms);
//var name=reader.ReadString();
//var code = reader.ReadInt32();
//var data=reader

var js = encoder.DecodeResult(action, data, rs);
var info = (AgentInfo)encoder.Convert(js, typeof(AgentInfo));

yield return info;
}
#else
if (buf != null && rs.Read(buf))
{
var msg = encoder.Decode(rs);
if (msg != null)
{
var js = encoder.DecodeResult(msg.Action, msg.Data, rs);
var info = (AgentInfo)encoder.Convert(js, typeof(AgentInfo));

yield return info;
}
}
#endif
}
}
#endregion
Expand Down
4 changes: 2 additions & 2 deletions Stardust/Stardust.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'!='net40'">
<PackageReference Include="NewLife.Core" Version="10.5.2023.824-beta1618" />
<PackageReference Include="NewLife.Remoting" Version="2.2.2023.814" />
<PackageReference Include="NewLife.Core" Version="10.5.2023.903-beta0058" />
<PackageReference Include="NewLife.Remoting" Version="2.3.2023.902-beta1701" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net40'">
<PackageReference Include="NewLife.Core" Version="10.5.2023.801-net40" />
Expand Down
2 changes: 1 addition & 1 deletion Test/Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.5.2023.824-beta1618" />
<PackageReference Include="NewLife.Core" Version="10.5.2023.903-beta0058" />
<PackageReference Include="SSH.NET" Version="2020.0.2" />
</ItemGroup>

Expand Down

0 comments on commit 782fd64

Please sign in to comment.