private void AddError(IList <IErrorListItem> errors, IErrorListItem item)
 {
     lock (this)
     {
         errors.Add(item);
         dirty = true;
     }
 }
Beispiel #2
0
 /// <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));
 }