/// <summary> /// Raises the TaskException event. /// </summary> /// <param name="eventArgs">The <see cref="EventHandler<TaskExceptionEventArgs>"/> that contains the event data.</param> protected virtual void OnTaskException(TaskExceptionEventArgs eventArgs) { if (TaskException != null) { TaskException(this, eventArgs); } }
/// <summary> /// Raises the TaskException event. /// </summary> /// <param name="eventArgs">The <see cref="EventHandler{TaskExceptionEventArgs}"/> that contains the event data.</param> protected virtual void OnTaskException(TaskExceptionEventArgs eventArgs) { this.TaskException?.Invoke(this, eventArgs); }