Alex,
I ran into the same issue and am just using a simple thread static
variable for keeping sessions segregated by thread.
using System;
using NHibernate;
using SharpArch.Data.NHibernate;
namespace MyProject.Data.SharpArch
{
public class ThreadSessionStorage : ISessionStorage
{
[ThreadStatic]
private static ISession _session;
public ISession Session
{
get
{
return _session;
}
set
{
_session = value;
}
}
}
}
HTH,
David