cmaslen
09-19-2007, 01:14 AM
Hi Bruno,
Great to see work being done on Spring.Net and WCF. I was wondering if there is any intention to implement service request scope objects similar to what's available in Spring.Web?
A couple of uses that come to mind are the ability to provide a session per view implementation for an NHibernate session in a WCF context or the ability to have your WCF service proxies cleaned up at the end of the client side request (spring would be able to call close for you).
I figure it could be done by implementing an IEndPointBehavior etc as per the following links:
http://blogs.msdn.com/drnick/archive/2007/04/23/icallcontextinitializer-example.aspx
and the background articles
http://blogs.msdn.com/drnick/archive/2007/04/19/initializing-the-context.aspx
http://blogs.msdn.com/drnick/archive/2007/04/27/a-bit-more-on-call-context-initializers.aspx
Cheers,
Christian Maslen
Great to see work being done on Spring.Net and WCF. I was wondering if there is any intention to implement service request scope objects similar to what's available in Spring.Web?
A couple of uses that come to mind are the ability to provide a session per view implementation for an NHibernate session in a WCF context or the ability to have your WCF service proxies cleaned up at the end of the client side request (spring would be able to call close for you).
I figure it could be done by implementing an IEndPointBehavior etc as per the following links:
http://blogs.msdn.com/drnick/archive/2007/04/23/icallcontextinitializer-example.aspx
and the background articles
http://blogs.msdn.com/drnick/archive/2007/04/19/initializing-the-context.aspx
http://blogs.msdn.com/drnick/archive/2007/04/27/a-bit-more-on-call-context-initializers.aspx
Cheers,
Christian Maslen