public Scheduling(SchedulingMode mode, Duration?interval = null, Duration?offset = null, bool useTimestampFromSource = false) { Mode = mode; Interval = interval; Offset = offset; UseTimestampFromSource = useTimestampFromSource; }
public static void SetSchedulingMode(SchedulingMode mode, bool clearCache = true) { var current = GetSchedulingMode(); if (current != mode) { DatabaseHelper.ExecuteStoredProcedure("UpdateHostSetting", "SchedulerMode", mode.ToString("D"), false, 1); if (clearCache) { WebApiTestHelper.ClearHostCache(); // must clear the site Cache afterwards } } }
public void SetParams() { if (m_inst != null) { m_inst.SetParamExpr("SchedulingMode", SchedulingMode.ToString()); m_inst.SetParamExpr("RoundRobinTimeout", RoundRobinTimeout.ToString()); m_inst.SetParamExpr("FreeStackLimit", FreeStackLimit.ToString()); m_inst.SetParamExpr("StackErrorMacro", StackErrorMacro); m_inst.SetParamExpr("StackCheckEnable", StackCheckEnable.ToString()); m_inst.SetParamExpr("StackErrorMacroEn", StackErrorMacroEn.ToString()); m_inst.SetParamExpr("LongUsrIntEnable", LongUsrIntEnable.ToString()); } }
public void SetParam(string paramName) { if (m_inst != null) { switch (paramName) { case "SchedulingMode": m_inst.SetParamExpr("SchedulingMode", SchedulingMode.ToString()); break; case "RoundRobinTimeout": m_inst.SetParamExpr("RoundRobinTimeout", RoundRobinTimeout.ToString()); break; case "FreeStackLimit": m_inst.SetParamExpr("FreeStackLimit", FreeStackLimit.ToString()); break; case "StackErrorMacro": m_inst.SetParamExpr("StackErrorMacro", StackErrorMacro); break; case "StackCheckEnable": m_inst.SetParamExpr("StackCheckEnable", StackCheckEnable.ToString()); break; case "StackErrorMacroEn": m_inst.SetParamExpr("StackErrorMacroEn", StackErrorMacroEn.ToString()); break; case "LongUsrIntEnable": m_inst.SetParamExpr("LongUsrIntEnable", LongUsrIntEnable.ToString()); break; default: break; } } }