upgrade
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user