tags:

views:

6

answers:

0

In order to workaround a bug in NHibernate (see here if you're interested), I would like to replace the default flush event listener in NHibernate with my overridden class.

I configure my event listeners programmatically (rather than in XML), but I'm not sure how the default event listeners are registered.

For example, in the following code, do the default flush listeners remain or are they replaced with MyFlushEventListener?

config.EventListeners.FlushEventListeners = new[] {
    new MyFlushEventListener()
};

How can I replace the default flush event listener with my own class?