public override void OnFlush(FlushEvent @event)
 {
     try
     {
         base.OnFlush(@event);
     }
     catch (AssertionFailure)
     {
         //swallow is a bug in NH
     }
 }
 /// <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);
     }
 }
 /// <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);
 }
 /// <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);
     }
 }