/// <summary> /// /// </summary> public void Start() { Validation.IsNotNull(SegmentTimer, "SegmentTimer"); try { Log.InfoFormat(MessageResources.MSG_GAME_START, SegmentTimer.Interval); SegmentTimer.Start(); Running = true; } catch (Exception ex) { ex.Handle <GeneralException>(ExceptionHandlingOptions.RecordOnly, Log); Stop(); } }
/// <summary> /// /// </summary> public void Stop() { Log.InfoFormat(MessageResources.MSG_GAME_STOP, DateTime.Now); SegmentTimer.Stop(); Running = false; }