コード例 #1
0
 public void UpdateError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Update(error);
 }
コード例 #2
0
 protected bool Equals(EventHandlerError other)
 {
     return string.Equals(Message, other.Message) && string.Equals(StackTrace, other.StackTrace) && Seq == other.Seq;
 }
コード例 #3
0
 public void AddError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Save(error);
 }
コード例 #4
0
 protected bool Equals(EventHandlerError other)
 {
     return(string.Equals(Message, other.Message) && string.Equals(StackTrace, other.StackTrace) && Seq == other.Seq);
 }
コード例 #5
0
ファイル: ErrorReporter.cs プロジェクト: brucewu16899/lacjam
 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));
     }
 }
コード例 #6
0
 public void UpdateError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Update(error);
 }
コード例 #7
0
 public void AddError(EventHandlerError error)
 {
     _sessionFactory.GetCurrentSession().Save(error);
 }