Exemplo n.º 1
0
 /// <summary>
 /// Raises the user exception.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="WorkerErrorEventArgs"/> instance containing the event data.</param>
 protected void RaiseUserException(object sender, WorkerErrorEventArgs e)
 {
     UserException?.Invoke(sender, e);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Raises the system exception.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="WorkerErrorEventArgs"/> instance containing the event data.</param>
 private void RaiseSystemException(object sender, WorkerErrorEventArgs e)
 {
     SystemException?.Invoke(sender, e);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Logs the system exception.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="WorkerErrorEventArgs"/> instance containing the event data.</param>
 protected void LogSystemException(object sender, WorkerErrorEventArgs e)
 {
     Log.ErrorException("Unhanded system exception", e.Error);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Logs the user exception.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="WorkerErrorEventArgs"/> instance containing the event data.</param>
 protected void LogUserException(object sender, WorkerErrorEventArgs e)
 {
     Log.WarnException("User exception", e.Error);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Logs the user exception.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="WorkerErrorEventArgs"/> instance containing the event data.</param>
 protected void LogUserException(object sender, WorkerErrorEventArgs e)
 {
     Log.LogError($"User exception{System.Environment.NewLine}{e.Error}");
 }