believe me, I have some problems to understand what you are talking about.
NH does not have a PostCommit event just because NH does not auto-manage the
transaction-commit.
At some point you are calling transaction.Commit and there you can fire your
events.

Where is the PostCommitUpdate listener ?

On Tue, Feb 8, 2011 at 7:03 PM, Krishna Jetti <[email protected]>wrote:

> Hello All,
>
>   When I researched it little further,
> NHibernateSession.TransactionInProgress is different, When we received
> the PostUpdateEvent for the PostUpdate event listener, the
> NHibernateSession.TransactionInProgress is true. But when we received
> the PostUpdateEvent for the PostCommitUpdate event listener, the
> NHibernateSession.TransactionInProgress is false. Is it reliable to
> differentiate using NHibernateSession.TransactionInProgress between
> PostUpdate event listener and PostCommitUpdate event listener.
>
> Thanks
>
> On Feb 8, 4:22 pm, Krishna Jetti <[email protected]> wrote:
> > Hello All,
> >
> >    We have extended the NHibernate events by implementing the
> > IEventListener interface of the NHibernate session. We have definition
> > for all the listeners PreXXX and PostXXX and Flush. But I want an
> > event listener for PostCommitXXX
> >
> >  As the signature for the PostCommitXXX and PostXXX has the same
> > PostXXXEvent argument, how can I distinguish between these events.
> >
> > Thanks
> > Krishna
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to