Implementation of feedback

Signed-off-by: James Thompson <thompson.tomo@outlook.com>
This commit is contained in:
James Thompson 2024-04-06 08:50:13 +11:00
parent 2eef08f8b7
commit fe1083e772
2 changed files with 10 additions and 6 deletions

View File

@ -8,13 +8,16 @@
<PackageTags>cncf;cloudnative;cloudevents;events;aspnetcore;aspnet</PackageTags> <PackageTags>cncf;cloudnative;cloudevents;events;aspnetcore;aspnet</PackageTags>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.0' and '$(TargetFramework)' != 'netstandard2.1'">
<FrameworkReference Include="Microsoft.AspNetCore.App" Condition="'$(TargetFramework)' != 'netstandard2.0' and '$(TargetFramework)' != 'netstandard2.1'"/> <FrameworkReference Include="Microsoft.AspNetCore.App"/>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.34" />
<PackageReference Include="System.Text.Encodings.Web" Version="6.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.34" Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'"/>
<PackageReference Include="System.Text.Encodings.Web" Version="6.0.0" Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1'" />
<ProjectReference Include="..\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" /> <ProjectReference Include="..\CloudNative.CloudEvents\CloudNative.CloudEvents.csproj" />
</ItemGroup> </ItemGroup>

View File

@ -125,6 +125,7 @@ namespace CloudNative.CloudEvents.AspNetCore.UnitTests
response.Body = new MemoryStream(); response.Body = new MemoryStream();
return response; return response;
} }
private static ReadOnlyMemory<byte> GetContent(HttpResponse response) private static ReadOnlyMemory<byte> GetContent(HttpResponse response)
{ {
response.Body.Position = 0; response.Body.Position = 0;