Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit b381daf

Browse files
committed
Update
1 parent c2c94b1 commit b381daf

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

src/Antelcat.DependencyInjection.Autowired.ServerTest/Antelcat.DependencyInjection.Autowired.ServerTest.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10+
<PackageReference Include="Antelcat.AspNetCore.DependencyInjection.Autowired" Version="7.0.0" />
1011
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.5" />
1112
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
1213
</ItemGroup>
1314

14-
<ItemGroup>
15-
<ProjectReference Include="..\Antelcat.AspNetCore.DependencyInjection.Autowired\Antelcat.AspNetCore.DependencyInjection.Autowired.csproj" />
16-
</ItemGroup>
17-
1815
</Project>

src/Antelcat.DependencyInjection.Autowired.Test/Antelcat.DependencyInjection.Autowired.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</ItemGroup>
2222

2323
<ItemGroup>
24-
<ProjectReference Include="..\Antelcat.DependencyInjection.Autowired\Antelcat.DependencyInjection.Autowired.csproj" />
24+
<ProjectReference Include="..\Antelcat.AspNetCore.DependencyInjection.Autowired\Antelcat.AspNetCore.DependencyInjection.Autowired.csproj" />
2525
</ItemGroup>
2626

2727
</Project>

src/Antelcat.DependencyInjection.Autowired.Test/ServiceTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void TestAutofac()
5151
watch.Start();
5252
while (times-- > 0) test();
5353
watch.Stop();
54-
Console.WriteLine($"Autofac resolve cost {watch.ElapsedTicks}");
54+
Console.WriteLine($"Autofac resolve {Times} times cost {watch.ElapsedTicks} ticks");
5555
}
5656

5757
[Test]
@@ -63,7 +63,7 @@ public void TestNative()
6363
watch.Start();
6464
while (times-- > 0) CurrentTest.Item1();
6565
watch.Stop();
66-
Console.WriteLine($"Native resolve cost {watch.ElapsedTicks}");
66+
Console.WriteLine($"Native resolve {Times} times cost {watch.ElapsedTicks} ticks");
6767
}
6868

6969
[Test]
@@ -75,7 +75,7 @@ public void TestAutowired()
7575
watch.Start();
7676
while (times-- > 0) CurrentTest.Item2();
7777
watch.Stop();
78-
Console.WriteLine($"Autowired resolve cost {watch.ElapsedTicks}");
78+
Console.WriteLine($"Autowired resolve {Times} times cost {watch.ElapsedTicks} ticks");
7979
}
8080

8181
[Test]

0 commit comments

Comments
 (0)