更新bug

This commit is contained in:
少年郎秃头呀
2024-02-17 21:38:53 +08:00
parent af2cca0a3e
commit e9d07db1ba
3 changed files with 24 additions and 15 deletions

View File

@@ -40,6 +40,7 @@ using cmonitor.client.reports.wallpaper;
using cmonitor.client.reports.snatch;
using cmonitor.service.messengers.snatch;
using cmonitor.libs;
using common.libs.winapis;
namespace cmonitor
@@ -58,12 +59,6 @@ namespace cmonitor
//日志输出
LoggerConsole();
/*
foreach (var arg in Dns.GetHostByName(Dns.GetHostName()).AddressList)
{
Console.WriteLine(arg.Address.ToString());
}*/
//读取参数
Dictionary<string, string> dic = ArgumentParser.Parse(args, out string error);
#if RELEASE
@@ -223,6 +218,9 @@ namespace cmonitor
else if (OperatingSystem.IsLinux()) serviceCollection.AddSingleton<ISnatch, SnatchLinux>();
else if (OperatingSystem.IsMacOS()) serviceCollection.AddSingleton<ISnatch, SnatchMacOS>();
serviceCollection.AddSingleton<WlanReport>();
serviceCollection.AddSingleton<ShareReport>();
serviceCollection.AddSingleton<CommandReport>();