Update
This commit is contained in:
ALEXTANG
2023-07-13 18:20:39 +08:00
parent bff8f20af3
commit fbb26ea9ea
4 changed files with 38 additions and 11 deletions

View File

@@ -5,6 +5,10 @@ namespace TEngine
{
static Log()
{
if (LogCore.Instance == null)
{
LogCore.TempInstance = new LogCore();
}
LogCore.Instance.ILog = new NLog("Server");
}

View File

@@ -17,6 +17,26 @@ namespace TEngine.Core
AssemblyManager.OnUnLoadAssemblyEvent += OnUnLoad;
}
/// <summary>
/// 特殊情况调用设置。
/// </summary>
public static T TempInstance
{
get
{
return Instance;
}
set
{
if (Instance != null)
{
return;
}
Instance = value;
}
}
public virtual Task Initialize()
{
return Task.CompletedTask;

View File

@@ -3,7 +3,10 @@
"rootNamespace": "",
"references": [
"GUID:08c3762f54316454ca6b6fbcb22b40e5",
"GUID:aa06d4cc755c979489c256c1bcca1dfb"
"GUID:aa06d4cc755c979489c256c1bcca1dfb",
"GUID:d020df1f2b63b444e8ca93c0d88597e2",
"GUID:ecba4a58c7f7a4842b72ce2c77aecf9b",
"GUID:d8b63aba1907145bea998dd612889d6b"
],
"includePlatforms": [],
"excludePlatforms": [],