mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-15 20:54:46 +00:00
change private field to store ms instead of minutes
This commit is contained in:
@@ -12,6 +12,9 @@ namespace PepperDash.Core
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommunicationStreamDebugging
|
public class CommunicationStreamDebugging
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Device Key that this instance configures
|
||||||
|
/// </summary>
|
||||||
public string ParentDeviceKey { get; private set; }
|
public string ParentDeviceKey { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -21,7 +24,7 @@ namespace PepperDash.Core
|
|||||||
|
|
||||||
public eStreamDebuggingSetting DebugSetting { get; private set; }
|
public eStreamDebuggingSetting DebugSetting { get; private set; }
|
||||||
|
|
||||||
private uint _DebugTimeoutMin;
|
private uint _DebugTimeoutInMs;
|
||||||
private const uint _DefaultDebugTimeoutMin = 30;
|
private const uint _DefaultDebugTimeoutMin = 30;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -31,16 +34,7 @@ namespace PepperDash.Core
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _DebugTimeoutMin;
|
return _DebugTimeoutInMs/60000;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private long _DebugTimeoutInMs
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return DebugTimeoutMinutes * 60000;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +72,7 @@ namespace PepperDash.Core
|
|||||||
/// <param name="minutes"></param>
|
/// <param name="minutes"></param>
|
||||||
public void SetDebuggingWithSpecificTimeout(eStreamDebuggingSetting setting, uint minutes)
|
public void SetDebuggingWithSpecificTimeout(eStreamDebuggingSetting setting, uint minutes)
|
||||||
{
|
{
|
||||||
_DebugTimeoutMin = minutes;
|
_DebugTimeoutInMs = minutes * 60000;
|
||||||
|
|
||||||
if (DebugExpiryPeriod != null)
|
if (DebugExpiryPeriod != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user