public void Start()
        {
            if (IsRunning)
            {
                throw new GeneralException("Burrow Environment is already running");
            }

            currentWorkSpaceHolder = new LocalSafe <WorkSpace>();
            PersistenceUnitRepo.Initialize(Configuration);
        }
 /// <summary>
 /// ShutDown the whole environment
 /// </summary>
 /// <remarks>
 /// it will roll back every conversation in the pool
 /// </remarks>
 public void ShutDown()
 {
     CheckRunning();
     if (new BurrowFramework().WorkSpaceIsReady)
     {
         throw new GeneralException(
                   "Domain must be closed before ShutDown, call BurrowFramework.CloseWorkSpace() first");
     }
     ConversationPool.Instance.Clear();
     currentWorkSpaceHolder = null;
     PersistenceUnitRepo.ResetInstance();
 }
 /// <summary>
 /// ShutDown the whole environment
 /// </summary>
 /// <remarks>
 /// it will roll back every conversation in the pool
 /// </remarks>
 public void ShutDown()
 {
     CheckRunning();
     if (new BurrowFramework().WorkSpaceIsReady)
     {
         throw new GeneralException(
             "Domain must be closed before ShutDown, call BurrowFramework.CloseWorkSpace() first");
     }
     ConversationPool.Instance.Clear();
     currentWorkSpaceHolder = null;
 	PersistenceUnitRepo.ResetInstance();
 }
        public void Start()
        {
            if (IsRunning)
            {
                throw new GeneralException("Burrow Environment is already running");
            }

            currentWorkSpaceHolder = new LocalSafe<WorkSpace>();
			PersistenceUnitRepo.Initialize(Configuration);
        }