Exemplo n.º 1
0
        public void CloseSession(string sessionKey, string username, string password)
        {
            //Auth login and IP
            AuthorizeClient(username, password);

            LocalRepo.SessionKey = sessionKey;
            LocalRepo.CloseSession(sessionKey);

            RevisionLog.CloseCurrentLog(Core.Context.Current.MapPath("/app_data/courier/temp_log.temp"), false);
        }
Exemplo n.º 2
0
        public void OpenSession(string sessionKey, string username, string password)
        {
            //Auth login and IP
            AuthorizeClient(username, password);

            RevisionLog.StartNewLog("__tempremoteLog", RevisionLogType.Remote);

            LocalRepo.SessionKey = sessionKey;
            LocalRepo.OpenSession(sessionKey);
        }
Exemplo n.º 3
0
 public void Clear()
 {
     if (_repository != null)
     {
         _repository.Head.PointerChanged -= OnHeadChanged;
         _repository.Status.Changed      -= OnStatusUpdated;
         if (_currentBranch != null)
         {
             _currentBranch.PositionChanged -= OnCurrentBranchPositionChanged;
             _currentBranch = null;
         }
         _currentIndex        = -1;
         _itemLookupTable     = null;
         _revisionLog         = null;
         _currentRevisionItem = null;
         _repository          = null;
         Items.Clear();
     }
 }
Exemplo n.º 4
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_repository != null)
         {
             _repository.Head.PointerChanged -= OnHeadChanged;
             _repository.Status.Changed      -= OnStatusUpdated;
             if (_currentBranch != null)
             {
                 _currentBranch.PositionChanged -= OnCurrentBranchPositionChanged;
                 _currentBranch = null;
             }
             _currentIndex        = -1;
             _itemLookupTable     = null;
             _revisionLog         = null;
             _currentRevisionItem = null;
             _repository          = null;
             Items.Clear();
         }
     }
     base.Dispose(disposing);
 }
Exemplo n.º 5
0
 protected override void Dispose(bool disposing)
 {
     if(disposing)
     {
         if(_repository != null)
         {
             _repository.Head.PointerChanged -= OnHeadChanged;
             _repository.Status.Changed -= OnStatusUpdated;
             if(_currentBranch != null)
             {
                 _currentBranch.PositionChanged -= OnCurrentBranchPositionChanged;
                 _currentBranch = null;
             }
             _currentIndex = -1;
             _itemLookupTable = null;
             _revisionLog = null;
             _currentRevisionItem = null;
             _repository = null;
             Items.Clear();
         }
     }
     base.Dispose(disposing);
 }
Exemplo n.º 6
0
 public void Clear()
 {
     if(_repository != null)
     {
         _repository.Head.PointerChanged -= OnHeadChanged;
         _repository.Status.Changed -= OnStatusUpdated;
         if(_currentBranch != null)
         {
             _currentBranch.PositionChanged -= OnCurrentBranchPositionChanged;
             _currentBranch = null;
         }
         _currentIndex = -1;
         _itemLookupTable = null;
         _revisionLog = null;
         _currentRevisionItem = null;
         _repository = null;
         Items.Clear();
     }
 }