mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 13:14:49 +00:00
Working on debug contexts
This commit is contained in:
@@ -40,7 +40,7 @@ namespace PepperDash.Core.DebugThings
|
|||||||
public DebugContextItem GetOrCreateItem(string contextKey)
|
public DebugContextItem GetOrCreateItem(string contextKey)
|
||||||
{
|
{
|
||||||
if (!Items.ContainsKey(contextKey))
|
if (!Items.ContainsKey(contextKey))
|
||||||
Items[contextKey] = new DebugContextItem() { Level = 0 };
|
Items[contextKey] = new DebugContextItem(this) { Level = 0 };
|
||||||
return Items[contextKey];
|
return Items[contextKey];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,5 +49,10 @@ namespace PepperDash.Core.DebugThings
|
|||||||
{
|
{
|
||||||
[JsonProperty("level")]
|
[JsonProperty("level")]
|
||||||
public int Level { get; set; }
|
public int Level { get; set; }
|
||||||
|
|
||||||
|
public DebugContextItem(DebugContextCollection parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
Reference in New Issue
Block a user