/// <summary> /// Stops monitoring /// </summary> public override void StopMonitoring() { base.StopMonitoring(); SourceArchiveMonitor.StopMonitoring(); WorkingSet.StopMonitoring(); }
/// <summary> /// Updates all of the components of the working set asynchronously. This launches three tasks. Each task depends on its predecessor: /// <list type="number"> /// <item><description>Update the <see cref="SrcMLProject.SourceArchive"/> and the <see cref="SrcMLProject.NonSourceArchive"/> objects based on <see cref="SrcMLProject.Monitor"/></description></item> /// <item><description>Updates the <see cref="Data"/> based on the <see cref="SrcMLProject.SourceArchive"/></description></item> /// <item><description>Updates the <see cref="Data"/> based on the <see cref="SrcMLProject.SourceArchive"/></description></item> /// </list> /// </summary> /// <returns>The 3rd task</returns> public override Task UpdateAsync() { return(Task.Factory.StartNew(() => base.UpdateAsync().Wait()) .ContinueWith((t) => SourceArchiveMonitor.UpdateArchivesAsync().Wait(), TaskContinuationOptions.OnlyOnRanToCompletion) .ContinueWith((t) => WorkingSet.InitializeAsync().Wait(), TaskContinuationOptions.OnlyOnRanToCompletion)); }
/// <summary> /// Starts monitoring /// </summary> public override void StartMonitoring() { WorkingSet.StartMonitoring(); SourceArchiveMonitor.StartMonitoring(); base.StartMonitoring(); }
/// <summary> /// Updates all of the components of this working set: /// <list type="number"> /// <item><description>Updates the <see cref="SrcMLProject.SourceArchive"/> and <see cref="SrcMLProject.NonSourceArchive"/> objects based on <see cref="SrcMLProject.Monitor"/></description></item> /// <item><description>Updates the <see cref="Data"/> based on the <see cref="SrcMLProject.SourceArchive"/></description></item> /// <item><description>Updates the <see cref="Data"/> based on the <see cref="SrcMLProject.SourceArchive"/></description></item> /// </list> /// </summary> public override void Update() { base.Update(); SourceArchiveMonitor.UpdateArchives(); WorkingSet.Initialize(); }