> They are already sharing a common interface and even common base
> implementation of what is possible to have in common.
> public sealed class SessionImpl : AbstractSessionImpl, IEventSource,
> ISerializable, IDeserializationCallback
> public class StatelessSessionImpl : AbstractSessionImpl, IStatelessSession

Fabio: Sorry, I hadn't checked the latest code when I made my post,
but even so,  AbstractSessionImpl isn't an interface. I remember with
NH 1.2.x I wanted to wrap NH behind a repository and load a Stateless
Session or a real Session based on a High Speed mode setting. I
couldn't keep a reference to a "IBaseSession" that could work with
both Stateless and normal Session, as neither implemented such a
thing.

I'm assuming that it's still the case in NH 3.x that there isn't a
shared interface between the two sessions. Apologies if there now is.

Reply via email to