public override void OnFlush(FlushEvent @event)
 {
     try
     {
         base.OnFlush(@event);
     }
     catch (AssertionFailure)
     {
         //swallow is a bug in NH
     }
 }
Пример #2
0
 /// <summary>
 /// Called when [flush].
 /// </summary>
 /// <param name="event">The @event.</param>
 public override void OnFlush( FlushEvent @event )
 {
     try
     {
         base.OnFlush ( @event );
     }
     catch ( AssertionFailure e )
     {
         // throw away
         Logger.WarnException("AssertionFailure occurred in " + GetType().Name, e);
     }
 }
Пример #3
0
 /// <summary>
 /// Handle the given flush event. 
 /// </summary>
 /// <param name="event">The flush event to be handled.</param>
 public void OnFlush(FlushEvent @event)
 {
     try
     {
         _defaultFlushListener.OnFlush(@event);
     }
     catch (Exception ex)
     {
         throw new InvalidOperationException("Error trying to flush", ex);
     }
 }
 public void OnFlush(FlushEvent @event)
 {
     log.Debug("OnFlush :" + @event);
 }
Пример #5
0
 /// <summary>
 /// Handle the given flush event. 
 /// </summary>
 /// <param name="event">The flush event to be handled.</param>
 public void OnFlush(FlushEvent @event)
 {
     try
     {
         try
         {
             _defaultFlushListener.OnFlush(@event);
         }
         finally
         {
             AggregateDataInterceptor.UpdateAggregatesPostFlush(EnsureVersionIdsInitialised(), @event.Session);
         }
     }
     catch (Exception ex)
     {
         throw new InvalidOperationException("Error trying to flush", ex);
     }
 }