Пример #1
0
        public void MethodCleanup()
        {
            uowHandler.Complete();
            uowHandler.Dispose();

            long elapsed = stopwatch.ElapsedMilliseconds;
            //Assert.IsTrue(elapsed < ElapseLimited, string.Format("超时,实际运行时间: {0}ms", elapsed));
        }
        public void Dispose()
        {
            _unitOfWorkCompleteHandle?.Complete();
            _unitOfWorkCompleteHandle?.Dispose();
            IocManager.Instance.Release(_unitOfWorkCompleteHandle);
            _unitOfWorkCompleteHandle = null;

            _session?.Dispose();
            IocManager.Instance.Release(_session);
            _session = null;
        }