Skip to content

Commit

Permalink
added nuget for conneciton reset and incremental package number
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaybheda committed Mar 6, 2024
1 parent e7c69fb commit 29f5311
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/SoapCore/SoapCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>SOAP protocol middleware for ASP.NET Core</Description>
<Version>1.1.0.46</Version>
<Version>1.1.0.47</Version>
<Authors>Digital Design</Authors>
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<PackageId>SoapCore</PackageId>
Expand Down Expand Up @@ -35,20 +35,24 @@
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.1.1" />
<PackageReference Include="System.IO.Pipelines" Version="4.7.0" />
<PackageReference Include="System.CodeDom" Version="4.7.0" />
<PackageReference Include="Microsoft.AspNetCore.Connections.Abstractions" Version="2.1.3" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'netcoreapp3.1'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="System.CodeDom" Version="4.7.0" />
<PackageReference Include="Microsoft.AspNetCore.Connections.Abstractions" Version="3.1.32" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'net5.0'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="System.CodeDom" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Connections.Abstractions" Version="5.0.17" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework) == 'net6.0'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="System.CodeDom" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Connections.Abstractions" Version="6.0.27" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/SoapCore/SoapEndpointMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using Microsoft.AspNetCore.Connections;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Mvc;
Expand Down Expand Up @@ -325,7 +326,7 @@ private async Task ProcessOperation(HttpContext httpContext, IServiceProvider se
{
status = StatusCodes.Status400BadRequest;
}
else if (ex?.Message == "The client has disconnected")
else if (ex is ConnectionResetException)
{
status = StatusCodes.Status400BadRequest;
}
Expand Down

0 comments on commit 29f5311

Please sign in to comment.