Exemple #1
0
 public void StartTransaction(string name)
 {
     if (Mode.DESIGN == _mode)
     {
         this.CheckDesignIsConnected();
         var status = _client.GetStatus();
         if (status != DesignState.BUSY)
         {
             throw(new Exception("Error!! No recording currently running!"));
         }
         _client.SetContainer(new SetContainerParams(name));
     }
     else if (Mode.END_USER_EXPERIENCE == _mode || Mode.RUNTIME == _mode)
     {
         CheckDataExchangeIsConnected();
         if (transactionName != null)
         {
             StopTransaction();
         }
         transactionName = name;
         HandleTimer();
         IList <string> timerPath = NewPath(transactionName);
         timerPath.Add(TRANSACTION_TIMER_NAME);
         timerBuilder = TimerBuilder.Start(timerPath);
     }
 }
 public void CreateTransaction(string _transactionName)
 {
     try
     {
         _client.SetContainer(new SetContainerParams(_transactionName));
     }
     catch (Exception e)
     {
         WriteExceptionToFile(e);
         throw e;
     }
 }
 public void StartTransaction(string transactionName)
 {
     _client.SetContainer(new SetContainerParams(transactionName));
 }
 public void startTransaction(string name)
 {
     designApiClient.SetContainer(new SetContainerParams(name));
 }