Castle.Facilities.NHibernateIntegration.Tests.SessionCreation.MyDao.PerformComplexOperation2 C# (CSharp) Method

PerformComplexOperation2() public method

public PerformComplexOperation2 ( ) : void
return void
		public void PerformComplexOperation2()
		{
			ISession prev = null;

			using(ISession sess = sessManager.OpenSession())
			{
				prev = sess;
			}

			otherDao.PerformPieceOfOperation2(prev);
		}

Usage Example

Example #1
0
        public void SessionDisposedIsNotReused()
        {
            MyDao dao = container.Resolve <MyDao>();

            dao.PerformComplexOperation2();
        }
All Usage Examples Of Castle.Facilities.NHibernateIntegration.Tests.SessionCreation.MyDao::PerformComplexOperation2