Example #1
0
        public override void RegisterSession(object key, ISession session)
        {
            if (parentTransactionScope != null)
            {
                // parentTransactionalScope.EnsureHasTransaction(session);
                parentTransactionScope.RegisterSession(new KeyHolder(key), session);
            }
            else if (parentSimpleScope != null)
            {
                parentSimpleScope.RegisterSession(new KeyHolder(key), session);
            }

            base.RegisterSession(key, session);
        }