views:

288

answers:

1
+1  Q: 

Nh.Burrow with WCF

Hello,

After implementing Nh.Burrow in an asp.net application, I was wondering how to do it for a WCF-service.

My first idea was to put a the BurrowFramework().InitWorkSpace(); in each method and set the InstanceContextMode to per Call on these methods. Now I have two questions:

  1. Are there better methods to combine Nh.Burrow with WCF?
  2. Is there a way to create and use a Long Burrow Conversation with WCF?

Regards,

Jochen

A: 

look at nhibernate addins project. they've got wcf integration facilities like NhSessionPerCallContextBehavior as well as loads of other usefull stuff.

RobertT