private OnBeforeReadDiagnostics ( ISystemContext context, BaseVariableValue variable, NodeState component ) : void | ||
context | ISystemContext | |
variable | BaseVariableValue | |
component | NodeState | |
리턴 | void |
private void OnBeforeReadDiagnostics(
ISystemContext context,
BaseVariableValue variable,
NodeState component)
{
lock (Lock)
{
if (!m_diagnosticsEnabled)
{
return;
}
if (DateTime.UtcNow < m_lastDiagnosticsScanTime.AddSeconds(1))
{
return;
}
DoScan(true);
}
}