1
This commit is contained in:
@@ -155,7 +155,7 @@ namespace BITKit
|
||||
"FAE",
|
||||
"MK",
|
||||
"Lzf",
|
||||
|
||||
"MySql",
|
||||
};
|
||||
}
|
||||
#if NET5_0_OR_GREATER
|
||||
@@ -249,7 +249,6 @@ namespace BITKit
|
||||
Settings = settings??new AppSettings();
|
||||
CancellationTokenSource = new CancellationTokenSource();
|
||||
AppName = appName;
|
||||
ThreadHelper.LogCurrentThread();
|
||||
InitialTime = DateTime.Now;
|
||||
await Init();
|
||||
}
|
||||
@@ -270,9 +269,7 @@ namespace BITKit
|
||||
BIT4Log.Log<BITApp>("已加载全局appsettings");
|
||||
}
|
||||
//内部反射初始化
|
||||
ThreadHelper.InitAPP();
|
||||
await UniTask.SwitchToThreadPool();
|
||||
ThreadHelper.LogCurrentThread();
|
||||
Stopwatch stopwatch = new();
|
||||
stopwatch.Start();
|
||||
Stopwatch reflectionHelperWatch = new();
|
||||
@@ -284,11 +281,15 @@ namespace BITKit
|
||||
await BITCommands.InitializeAsync();
|
||||
commandWatch.Stop();
|
||||
|
||||
|
||||
Stopwatch binaryWatch = new();
|
||||
await BITBinary.Start();
|
||||
binaryWatch.Stop();
|
||||
|
||||
stopwatch.Stop();
|
||||
State = InitializationState.Initialized;
|
||||
BIT4Log.Log<BITApp>($"已完成初始化,耗时:{stopwatch.ElapsedMilliseconds}ms");
|
||||
BIT4Log.Log<BITApp>($"反射初始化耗时:{reflectionHelperWatch.ElapsedMilliseconds}ms");
|
||||
BIT4Log.Log<BITApp>($"初始化二进制序列化耗时:{binaryWatch.ElapsedMilliseconds}ms");
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user