Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }