This commit is contained in:
CortexCore
2023-07-02 02:20:40 +08:00
parent dfbcd03756
commit 6df4649c64
13 changed files with 194 additions and 70 deletions

View File

@@ -28,6 +28,7 @@ namespace BITKit
[System.Serializable]
public record AppSettings
{
public bool AllowInitialize = true;
public List<string> whiteList = new();
public List<string> blackList = new()
{
@@ -133,9 +134,14 @@ namespace BITKit
CancellationTokenSource = new CancellationTokenSource();
AppName = appName;
ThreadHelper.LogCurrentThread();
if (settings is not null && settings.AllowInitialize)
{
return;
}
await Init();
}
static async Task Init()
private static async Task Init()
{
try
{