Skip to content

Commit

Permalink
v2.7.2024.0202
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Feb 2, 2024
1 parent f789543 commit 4b4ace6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions NewLife.Remoting/ApiServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,18 @@ public IApiServer EnsureCreate()

if (Port <= 0) throw new ArgumentNullException(nameof(Server), "未指定服务器Server,且未指定端口Port!");

svr = new ApiNetServer
var server = new ApiNetServer
{
Host = this,
Tracer = Tracer,
};
svr.Init(new NetUri(NetType.Unknown, "*", Port), this);
server.Init(new NetUri(NetType.Unknown, "*", Port), this);

// 升级核心库以后不需要反射
//svr.ReuseAddress = ReuseAddress;
svr.SetValue("ReuseAddress", ReuseAddress);
server.ReuseAddress = ReuseAddress;
//server.SetValue("ReuseAddress", ReuseAddress);

return Server = svr;
return Server = server;
}

/// <summary>开始服务</summary>
Expand Down
2 changes: 1 addition & 1 deletion NewLife.Remoting/NewLife.Remoting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.7.2024.201" />
<PackageReference Include="NewLife.Core" Version="10.7.2024.202" />
</ItemGroup>

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

<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.7.2024.201" />
<PackageReference Include="NewLife.Core" Version="10.7.2024.202" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion XUnitTest/XUnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="NewLife.Core" Version="10.7.2024.201" />
<PackageReference Include="NewLife.Core" Version="10.7.2024.202" />
<PackageReference Include="NewLife.UnitTest" Version="1.0.2023.1204" />
<PackageReference Include="xunit" Version="2.6.6" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
Expand Down

0 comments on commit 4b4ace6

Please sign in to comment.