/// <summary> /// Invokes the ErrorAdded event of the <see cref="VServerErrors"/>. /// </summary> /// <param name="serverError">The <see cref="VServerError"/>, that was added.</param> protected virtual void OnErrorAdded(VServerError serverError) { this.ErrorAdded?.Invoke(serverError); }
/// <summary> /// Adds an <see cref="VServerError"/>. /// </summary> /// <param name="error">The <see cref="VServerError"/>, that should be added.</param> public void AddError(VServerError error) { this.Errors.Add(error); this.OnErrorAdded(error); }