Skip to content

Commit

Permalink
resolved #109
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh199478 committed Dec 13, 2018
1 parent 793aee8 commit 07bf6f3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/CatLib.Core/CatLib/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ private readonly SortedList<int, List<IServiceProvider>> serviceProviders
/// </summary>
public IDispatcher Dispatcher => dispatcher ?? (dispatcher = this.Make<IDispatcher>());

/// <summary>
/// 调试等级
/// </summary>
private DebugLevels debugLevel;

/// <summary>
/// 构建一个CatLib实例
/// </summary>
Expand Down Expand Up @@ -409,8 +414,12 @@ public int GetPriority(Type type, string method = null)
/// </summary>
public DebugLevels DebugLevel
{
get => (DebugLevels)Make(Type2Service(typeof(DebugLevels)));
set => Instance(Type2Service(typeof(DebugLevels)), value);
get => debugLevel;
set
{
debugLevel = value;
Instance(Type2Service(typeof(DebugLevels)), debugLevel);
}
}

/// <summary>
Expand Down

0 comments on commit 07bf6f3

Please sign in to comment.