mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-13 12:36:38 +00:00
change private field to store ms instead of minutes
This commit is contained in:
parent
8f075fbed7
commit
a7bacd26dd
1 changed files with 6 additions and 12 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue