Ensures default timeout is used when calling from JsonToSimpl modules

This commit is contained in:
Neil Dorin
2020-09-14 16:49:53 -06:00
parent 0ed2180464
commit db2f86aede
3 changed files with 228 additions and 219 deletions

View File

@@ -104,7 +104,7 @@ namespace PepperDash.Core.JsonToSimpl
} }
public void setDebugLevel(int level) public void setDebugLevel(int level)
{ {
Debug.SetDebugLevel(level); Debug.SetDebugLevel(level, Debug.DebugTimoutMs);
} }
public override void Save() public override void Save()

View File

@@ -128,7 +128,7 @@ namespace PepperDash.Core.JsonToSimpl
/// <param name="level"></param> /// <param name="level"></param>
public void setDebugLevel(int level) public void setDebugLevel(int level)
{ {
Debug.SetDebugLevel(level); Debug.SetDebugLevel(level, Debug.DebugTimoutMs);
} }
/// <summary> /// <summary>

View File

@@ -26,8 +26,14 @@ namespace PepperDash.Core
/// </summary> /// </summary>
public static string FileName = string.Format(@"app{0}Debug.json", InitialParametersClass.ApplicationNumber); public static string FileName = string.Format(@"app{0}Debug.json", InitialParametersClass.ApplicationNumber);
/// <summary>
/// Current debgu level
/// </summary>
public static int Level { get; private set; } public static int Level { get; private set; }
/// <summary>
/// Indicates if config should be loaded on next boot
/// </summary>
public static bool DoNotLoadOnNextBoot { get; private set; } public static bool DoNotLoadOnNextBoot { get; private set; }
static DebugContextCollection Contexts; static DebugContextCollection Contexts;
@@ -37,8 +43,11 @@ namespace PepperDash.Core
/// <summary> /// <summary>
/// Default debug timeout (30 min) /// Default debug timeout (30 min)
/// </summary> /// </summary>
static long DebugTimoutMs = 1800000; public static long DebugTimoutMs = 1800000;
/// <summary>
/// Current version string
/// </summary>
public static string PepperDashCoreVersion { get; private set; } public static string PepperDashCoreVersion { get; private set; }
static CTimer SaveTimer; static CTimer SaveTimer;