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); }
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); }
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(); } }
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); }
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); }
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(); } }