Skip to content

Commit

Permalink
.NET Core 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chronoxor committed Nov 9, 2019
1 parent 92bd305 commit ae86bd7
Show file tree
Hide file tree
Showing 24 changed files with 57 additions and 72 deletions.
10 changes: 5 additions & 5 deletions examples/SslChatClient/SslChatClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\tools\certificates\client.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions examples/SslChatServer/SslChatServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\tools\certificates\server.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/TcpChatClient/TcpChatClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion examples/TcpChatServer/TcpChatServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion examples/UdpEchoClient/UdpEchoClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion examples/UdpEchoServer/UdpEchoServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion examples/UdpMulticastClient/UdpMulticastClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion examples/UdpMulticastServer/UdpMulticastServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
12 changes: 6 additions & 6 deletions performance/SslEchoClient/SslEchoClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
<None Include="..\..\tools\certificates\client.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\tools\certificates\client.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions performance/SslEchoServer/SslEchoServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
<None Include="..\..\tools\certificates\server.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\tools\certificates\server.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions performance/SslMulticastClient/SslMulticastClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
<None Include="..\..\tools\certificates\client.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\tools\certificates\client.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions performance/SslMulticastServer/SslMulticastServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
<None Include="..\..\tools\certificates\server.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
<PackageReference Include="NDesk.Options.Core" Version="1.2.5" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\tools\certificates\server.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<ProjectReference Include="..\..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion performance/TcpEchoClient/TcpEchoClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion performance/TcpEchoServer/TcpEchoServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion performance/TcpMulticastClient/TcpMulticastClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion performance/TcpMulticastServer/TcpMulticastServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion performance/UdpEchoClient/UdpEchoClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion performance/UdpEchoServer/UdpEchoServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion performance/UdpMulticastClient/UdpMulticastClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion performance/UdpMulticastServer/UdpMulticastServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
6 changes: 4 additions & 2 deletions source/NetCoreServer/NetCoreServer.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>1.8.0</Version>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>2.0.0</Version>
<Authors>Ivan Shynkarenka</Authors>
<Copyright>Copyright (c) 2019 Ivan Shynkarenka</Copyright>
<RepositoryUrl>https://github.com/chronoxor/NetCoreServer</RepositoryUrl>
Expand All @@ -14,6 +14,8 @@
<PropertyGroup>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
</PropertyGroup>

</Project>
8 changes: 0 additions & 8 deletions source/NetCoreServer/SslClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,6 @@ public virtual bool Disconnect()

try
{
try
{
// Shutdown the SSL stream
_sslStream.ShutdownAsync().Wait();
}
catch (AggregateException) {}
catch (IOException) {}

// Dispose the SSL stream & buffer
_sslStream.Dispose();
_sslStreamId = null;
Expand Down
8 changes: 0 additions & 8 deletions source/NetCoreServer/SslSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,6 @@ public virtual bool Disconnect()

try
{
try
{
// Shutdown the SSL stream
_sslStream.ShutdownAsync().Wait();
}
catch (AggregateException) {}
catch (IOException) {}

// Dispose the SSL stream & buffer
_sslStream.Dispose();
_sslStreamId = null;
Expand Down
11 changes: 5 additions & 6 deletions tests/tests.csproj
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>8</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="..\tools\certificates\client.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand All @@ -28,4 +23,8 @@
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\source\NetCoreServer\NetCoreServer.csproj" />
</ItemGroup>

</Project>

0 comments on commit ae86bd7

Please sign in to comment.