public void UpdateError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Update(error);
 }
 protected bool Equals(EventHandlerError other)
 {
     return string.Equals(Message, other.Message) && string.Equals(StackTrace, other.StackTrace) && Seq == other.Seq;
 }
 public void AddError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Save(error);
 }
 protected bool Equals(EventHandlerError other)
 {
     return(string.Equals(Message, other.Message) && string.Equals(StackTrace, other.StackTrace) && Seq == other.Seq);
 }
Exemple #5
0
 private void RecordException(SequencedEvent @event, Exception e)
 {
     var error = new EventHandlerError(@event.EventType, @event.Sequence, e);
     if (LastError != null && LastError == error)
     {
         LastError.Increment();
         _errorRepository.UpdateError(LastError);
         Logger.Error(String.Format("Error on event {0} {1} (count : {2})", @event.EventType, @event.Sequence, LastError.Count));
     }
     else
     {
         _errorRepository.AddError(error);
         LastError = error;
         Logger.Error(String.Format("Error on event {0} {1} {2}", @event.EventType, @event.Sequence, e));
     }
 }
Exemple #6
0
 public void UpdateError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Update(error);
 }
Exemple #7
0
 public void AddError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Save(error);
 }