コード例 #1
0
 public void Handle(FailureMessage fail)
 {
     IncrementMessagesReceived();
     fileProcessed++;
     var exception = fail.Cause;
     if (exception is AggregateException)
     {
         var agg = (AggregateException)exception;
         exception = agg.InnerException;
         agg.Handle(exception1 => true);
     }
     //Context.Parent.Tell(new StatusMessage("Error " + fail.Child.Path + " " + exception != null ? exception.Message : "no exception object"));
     _logger.Error(fail.Cause.Message);
 }
コード例 #2
0
 private void Handle(FailureMessage failureMessage)
 {
     IncrementMessagesReceived();
     Context.Parent.Tell(failureMessage);
 }