Пример #1
0
 public static void ResetEnvironment()
 {
     SchemaUtil su = new SchemaUtil();
     su.CreateSchemas();
     BurrowFramework f = new BurrowFramework();
     f.CloseWorkSpace();
     f.BurrowEnvironment.ShutDown(); //Restart the environment to prepare a fresh start 
     f.BurrowEnvironment.Start();
     Checker.CheckSpanningConversations(0);
     f.InitWorkSpace();
 }
 protected override void Perform()
 {
     pt = new ProgressTracker();
     BurrowFramework bf = new BurrowFramework();
     bf.InitWorkSpace();
     try {
         pt.ProgressChanged += new EventHandler(pt_ProgressChanged);
         DoPerform();
     }catch(Exception) {
         try {
             if (bf.CurrentConversation != null)
                 bf.CurrentConversation.GiveUp();
         }catch (Exception) {/*prevent this exception hiding the real one*/}
         throw;
     }
     finally {
         try {
             bf.CloseWorkSpace();
         }
         catch (Exception) {/*prevent this exception hiding the real one*/}
     }
 }
Пример #3
0
 protected void InitWorkSpace()
 {
     burrow = new BurrowFramework();
     burrow.InitWorkSpace();
 }
Пример #4
0
 public void Setup()
 {
     BurrowFramework framework = new BurrowFramework();
     framework.InitWorkSpace();
     NHibernateSessionManager.Instance.BeginTransaction(null);
 }