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;
|
||||
|
Reference in New Issue
Block a user