change - 添加GC

master
wenjy 9 months ago
parent 750686c7c5
commit 2f6559ee90

@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/modules.xml
/.idea.Ems.CollectService.iml
/contentModel.xml
/projectSettingsUpdater.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

@ -6,6 +6,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Lierda.WPFHelper" Version="1.0.3" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
</ItemGroup> </ItemGroup>

@ -3,6 +3,7 @@ using Ems.CollectService.Redis;
using Ems.CollectService.SqlSugarCore; using Ems.CollectService.SqlSugarCore;
using Ems.CollectService.Timer; using Ems.CollectService.Timer;
using Ems.CollectService.TouchSocket; using Ems.CollectService.TouchSocket;
using Lierda.WPFHelper;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Microsoft.IdentityModel.Logging; using Microsoft.IdentityModel.Logging;
@ -21,6 +22,8 @@ namespace Ems.CollectService
{ {
internal class Program internal class Program
{ {
private static LierdaCracker cracker = new LierdaCracker();
private static Logger logger = LogManager.GetCurrentClassLogger(); private static Logger logger = LogManager.GetCurrentClassLogger();
private static TcpServer service = TcpServer.Instance; private static TcpServer service = TcpServer.Instance;
@ -46,6 +49,7 @@ namespace Ems.CollectService
while (true) while (true)
{ {
cracker.Cracker(100);
Task.Delay(1000 * 10).Wait(); Task.Delay(1000 * 10).Wait();
} }
} }

Loading…
Cancel
Save