Ejemplo n.º 1
0
 public void Cancel()
 {
     try
     {
         if (!_cancelled)
         {
             _cancelled = true;
             RaiseProgressEvent(99, "Starting cancel...");
             Server s = new Server();
             s.Connect(_currentAggD.ParentServer.ConnectionString);
             s.CancelSession(_sessionID);
             RaiseProgressEvent(100, "Successfully cancelled...");
         }
     }
     catch (Exception ex)
     {
         RaiseProgressEvent(99, "Trying to cancel...\r\n" + ex.Message + " " + ex.StackTrace);
     }
 }