/// <summary> /// This method can be called by the state machine methods to request /// the state machine to run at Deadline. If Deadline is MinValue, the /// state machine will be run again immediately. /// </summary> public void ScheduleRun(String reason, DateTime deadline) { if (deadline < NextRunDate) { NextRunDate = deadline; WmSm.ScheduleRun(KwmStrings.Kws + m_kws.InternalID + ": " + reason, deadline); } }