I can't seem to understand how to use uNHAddins in my application so I
am exploring possibly using PostSharp.  Tell me if I am thinking about
this correctly.  If I intercept the lazy loaded properties of my
object I can open the session for lazy loading calls, correct?  Will
this interfere with Castle at all?  Is it possible to have two proxies
operating on a single property/method and if so how is the order
determined?

It seems with PostSharp that I can handle the entry and exit of the
property so after the lazy load I can close the session again.  This
would be optimal, yes?

Thanks,
Josh

On Jun 23, 9:42 am, Fabio Maulo <[email protected]> wrote:
> 2009/6/23 joshlrogers <[email protected]>
>
> > 1.  If I go to using IoC for my session management I still do not see
> > how that takes care of possible orphaned sessions or prematurely
> > closed sessions.
>
> Orphaned ?
> CpBT do it trough SessionWrapper.
>
> > 2.  If I use one very long session through the life of the program and
> > just call commits on that session I am worried about the caching and
> > other possible issues.
>
> If you use a long session that span the life time of the application you
> will have only a time bomb.
>
>
>
> > 3.  I REALLY do not want to make my forms cognizant of the session
> > handling however I do not know how I can get around this since for
> > lazy loading I have to leave a session open which could possibly
> > result in orphaned sessions.  Yet, I do not see any other way to close
> > those sessions without the form giving some kind of notification to
> > the DAL.
>
> Model in Gustavo's example (in uNhAddIns examples).
>
>
>
> > 4.  Even if I did fully grok IoC and CpBT, which I don't and that is
> > probably the problem, I don't see how that handles leaving sessions
> > open to allow for lazy loading unless there is some way to intercept
> > the lazy loading call so that you can open the session get the
> > information that needs to be loaded then close the session again.
> > However, I have no idea if that is possible or how it would be
> > implemented.
>
> AOP
>
> > I apologize for being so dense when it comes to this.  Handling these
> > sessions has forced me to think more abstractly than I normally do,
> > which is a good thing, thus why I want to take this experience and
> > learn from it.
>
> Perhaps we should implements a "easier" to manual manage CpBT, in uNhAddIns,
> without AOP but, so far, we don't have any request in this direction.
>
> --
> 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