Refactor some service

This commit is contained in:
2dust
2024-10-07 10:39:43 +08:00
parent 3bdef4d6d8
commit d5c6a42a9a
17 changed files with 82 additions and 73 deletions

View File

@@ -141,7 +141,7 @@ namespace ServiceLib.ViewModels
UpdatedPlusPlus(_geo, "");
}
}
await (new UpdateHandler()).UpdateGeoFileAll(_config, _updateUI)
await (new UpdateService()).UpdateGeoFileAll(_config, _updateUI)
.ContinueWith(t =>
{
UpdatedPlusPlus(_geo, "");
@@ -169,7 +169,7 @@ namespace ServiceLib.ViewModels
UpdatedPlusPlus(_v2rayN, msg);
}
}
await (new UpdateHandler()).CheckUpdateGuiN(_config, _updateUI, preRelease)
await (new UpdateService()).CheckUpdateGuiN(_config, _updateUI, preRelease)
.ContinueWith(t =>
{
UpdatedPlusPlus(_v2rayN, "");
@@ -189,7 +189,7 @@ namespace ServiceLib.ViewModels
}
}
var type = (ECoreType)Enum.Parse(typeof(ECoreType), item.coreType);
await (new UpdateHandler()).CheckUpdateCore(type, _config, _updateUI, preRelease)
await (new UpdateService()).CheckUpdateCore(type, _config, _updateUI, preRelease)
.ContinueWith(t =>
{
UpdatedPlusPlus(item.coreType, "");