/// <summary> /// Stop monitoring <see cref="MonitoredDirectories">monitored directories</see>. /// </summary> /// <remarks> /// Stops monitoring /// </remarks> public override void StopMonitoring() { if (ScanTimer.Enabled) { ScanTimer.Stop(); base.StopMonitoring(); } }
/// <summary> /// SrcML service stops monitoring the opened solution. /// </summary> public void StopMonitoring() { SrcMLFileLogger.DefaultLogger.Info("SrcMLGlobalService.StopMonitoring()"); try { if (CurrentMonitor != null && CurrentSrcMLArchive != null) { OnMonitoringStopped(new EventArgs()); SaveTimer.Stop(); CurrentProject.StopMonitoring(); CurrentMonitor.FileChanged -= RespondToFileChangedEvent; CurrentMonitor.DirectoryAdded -= RespondToDirectoryAddedEvent; CurrentMonitor.DirectoryRemoved -= RespondToDirectoryRemovedEvent; CurrentProject.Dispose(); CurrentProject = null; CurrentMonitor = null; } } catch (Exception e) { SrcMLFileLogger.DefaultLogger.Error(SrcMLExceptionFormatter.CreateMessage(e, "Exception in SrcMLGlobalService.StopMonitoring()")); } }
/// <summary> /// Stops monitoring /// </summary> public virtual void StopMonitoring() { IsMonitoring = false; SaveTimer.Stop(); StopMonitoringImpl(); }