Hi,
I'm a beginner concerning both WCF and NHibernate. However, I have to do a little project involving several services (made with WCF) and a persistent layer (made with NHibernate).
My problem concerns the usage of ISession and ISessionFactory. I have read (and seen) that the instantiation of ISessionFactory is very heavy (and thread-safe). So, I think that I could instantiate this class only once during the application runtime. I'm right?
My problem concerns more the ISession class. I don't exactly know at which granularity I have to use it. I think that I should use/create one instance for each call to service operation (I use "per-call services"). Again, I'm right?