Skip to content

Commit

Permalink
fix sample frammework
Browse files Browse the repository at this point in the history
  • Loading branch information
AMEST committed Apr 30, 2021
1 parent 7f106a2 commit a59351b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task<SpeedTestResult> Check(string url, CancellationToken token = d
using var response = await _client.GetAsync(url, token);
sw.Stop();
var elapsedSeconds = sw.ElapsedMilliseconds / 1000.0;
var content = await response.Content.ReadAsStringAsync(token);
var content = await response.Content.ReadAsStringAsync();
var contentLenghtKb = content.Length / 1024;
return new SpeedTestResult()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Worker">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UserSecretsId>dotnet-Skidbladnir.Modules.Sample-A65A4610-4E5F-4C25-833F-32D30123D501</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.11" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit a59351b

Please sign in to comment.