Skip to content

Commit

Permalink
v1.2.2024.1008
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Oct 8, 2024
1 parent 9578866 commit 12634ca
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 28 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
- uses: actions/checkout@v4
- name: Setup dotNET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 9.x
- name: Restore
run: |
dotnet restore NewLife.Meter/NewLife.HttpMeter.csproj
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
- uses: actions/checkout@v4
- name: Setup dotNET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 9.x
- name: Restore
run: |
dotnet restore NewLife.Meter/NewLife.HttpMeter.csproj
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
- uses: actions/checkout@v4
- name: Setup dotNET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 9.x
- name: Build
run: |
dotnet build -c Release
Expand Down
6 changes: 3 additions & 3 deletions HttpMeter/HttpMeter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyTitle>Http压力测试</AssemblyTitle>
<Description>Http压力测试工具</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2022 NewLife</Copyright>
<VersionPrefix>1.1</VersionPrefix>
<Copyright>©2002-2024 NewLife</Copyright>
<VersionPrefix>1.2</VersionPrefix>
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
<FileVersion>$(Version)</FileVersion>
Expand Down
6 changes: 5 additions & 1 deletion NewLife.Meter/MeterWorker.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
using System.Diagnostics;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using NewLife.Http;
using NewLife.Log;
#if !NET45
using TaskEx = System.Threading.Tasks.Task;
#endif

namespace NewLife.HttpMeter;

Expand Down Expand Up @@ -107,7 +111,7 @@ protected virtual Task InitAsync()
_content = File.ReadAllText(cfg.File.GetFullPath());
}

return Task.CompletedTask;
return TaskEx.CompletedTask;
}

/// <summary>处理单次请求</summary>
Expand Down
10 changes: 5 additions & 5 deletions NewLife.Meter/NewLife.HttpMeter.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<AssemblyTitle>Http压力测试组件</AssemblyTitle>
<Description>高性能Http压力测试套装</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2022 新生命开发团队</Copyright>
<VersionPrefix>1.1</VersionPrefix>
<Copyright>©2002-2024 新生命开发团队</Copyright>
<VersionPrefix>1.2</VersionPrefix>
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
<FileVersion>$(Version)</FileVersion>
Expand Down Expand Up @@ -36,14 +36,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.0.2022.1101" />
<PackageReference Include="NewLife.Core" Version="11.0.2024.1001" />
</ItemGroup>

<ItemGroup>
Expand Down
14 changes: 7 additions & 7 deletions XUnitTest/XUnitTest.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<OutputPath>..\Bin\UnitTest</OutputPath>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="NewLife.Core" Version="10.0.2022.1101" />
<PackageReference Include="NewLife.UnitTest" Version="1.0.2022.901" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="NewLife.Core" Version="11.0.2024.1001" />
<PackageReference Include="NewLife.UnitTest" Version="1.0.2024.1006" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 12634ca

Please sign in to comment.