/// <summary> /// /// </summary> /// <param name="eventArgs"></param> /// <returns></returns> protected async Task RaiseExceptionReceived(ProcessErrorEventArgs eventArgs) { try { await _errorHandler(eventArgs).ConfigureAwait(false); } catch (Exception exception) { // don't bubble up exceptions raised from customer exception handler ServiceBusEventSource.Log.ProcessorErrorHandlerThrewException(exception.ToString()); } }
/// <inheritdoc cref="ServiceBusProcessor.OnProcessErrorAsync(ProcessErrorEventArgs)"/> protected internal virtual async Task OnProcessErrorAsync(ProcessErrorEventArgs args) { await InnerProcessor.OnProcessErrorAsync(args).ConfigureAwait(false); }
/// <summary> /// Called when a 'process error' event is triggered. /// </summary> /// /// <param name="eventArgs">The set of arguments to identify the context of the error to be processed.</param> private Task OnProcessErrorAsync(ProcessErrorEventArgs eventArgs) => _processErrorAsync(eventArgs);