mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update
Update
This commit is contained in:
@@ -5,6 +5,10 @@ namespace TEngine
|
||||
{
|
||||
static Log()
|
||||
{
|
||||
if (LogCore.Instance == null)
|
||||
{
|
||||
LogCore.TempInstance = new LogCore();
|
||||
}
|
||||
LogCore.Instance.ILog = new NLog("Server");
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -3,7 +3,10 @@
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:08c3762f54316454ca6b6fbcb22b40e5",
|
||||
"GUID:aa06d4cc755c979489c256c1bcca1dfb"
|
||||
"GUID:aa06d4cc755c979489c256c1bcca1dfb",
|
||||
"GUID:d020df1f2b63b444e8ca93c0d88597e2",
|
||||
"GUID:ecba4a58c7f7a4842b72ce2c77aecf9b",
|
||||
"GUID:d8b63aba1907145bea998dd612889d6b"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
Reference in New Issue
Block a user