private void AddError(IList <IErrorListItem> errors, IErrorListItem item) { lock (this) { errors.Add(item); dirty = true; } }
/// <summary> /// Adds a new error to the Factory and updates the CurrentSnapshot /// </summary> /// <param name="newError"></param> internal void AddErrorItem(IErrorListItem newError) { _currentErrors.Add(newError); UpdateErrors(); }
/// <summary> /// Adds a new error to the Factory and updates the CurrentSnapshot /// </summary> /// <param name="newError"></param> internal void AddErrorItem(IErrorListItem newError) { _currentErrors.Add(newError); UpdateErrors(new OutputErrorSnapshot(CurrentSnapshot.VersionNumber + 1, _currentErrors)); }