1

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?
shilovk
  • 11,718
  • 17
  • 75
  • 74
Jochen
  • 1,488
  • 16
  • 21
  • I'm interested in this. Did you find more information? – Alex Dec 21 '09 at 18:13
  • I haven't found a better way for te moment. Doing InitWorkSpace in each service call is the simplest solution for now. But I still have to check UNHAddins. – Jochen Dec 22 '09 at 10:17

1 Answers1

0

Look at nhibernate addins project. They've got WCF integration facilities like NhSessionPerCallContextBehavior as well as loads of other usefull stuff.

Darren
  • 68,902
  • 24
  • 138
  • 144