Exemplo n.º 1
0
        private void OnProcessingFailed(object sender, ProcessingFailedEventArgs e)
        {
            var status = JobStatus.Failed;

            WriteStatus(e.ProcessingRequest, status, e.Exception.ToString(), exception: e.Exception);
            ProcessingFailed?.Invoke(this, e);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Invoked when the processing of a <see cref="ProcessingRequest"/> fails
 /// </summary>
 /// <param name="request"><see cref="ProcessingRequest"/> provided to <see cref="ProcessAsync(ProcessingRequest, CancellationToken)"/></param>
 /// <param name="exception">Exception generated from failure</param>
 protected virtual void OnProcessingFailed(ProcessingRequest request, Exception exception)
 {
     ProcessingFailed?.Invoke(this, new ProcessingFailedEventArgs(request, exception));
 }