private void FixupTimeoutAction(TimeoutAction previousValue) { if (previousValue != null && previousValue.TimedTaskSettingsSet.Contains(this)) { previousValue.TimedTaskSettingsSet.Remove(this); } if (TimeoutAction != null) { if (!TimeoutAction.TimedTaskSettingsSet.Contains(this)) { TimeoutAction.TimedTaskSettingsSet.Add(this); } if (TimeoutActionID != TimeoutAction.TimeoutActionID) { TimeoutActionID = TimeoutAction.TimeoutActionID; } } }
private void FixupTimeoutAction(TimeoutAction previousValue) { if (previousValue != null && previousValue.SchedulingInformationSet.Contains(this)) { previousValue.SchedulingInformationSet.Remove(this); } if (TimeoutAction != null) { if (!TimeoutAction.SchedulingInformationSet.Contains(this)) { TimeoutAction.SchedulingInformationSet.Add(this); } if (TimeoutActionID != TimeoutAction.TimeoutActionID) { TimeoutActionID = TimeoutAction.TimeoutActionID; } } }